Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add(sum) different columns from two different tables from single data base i tried many times but all waste. please guide if any one have any idea...

What I have tried:

query="select(t1)as(t1),sum(t2) from alltrn"
Posted
Updated 2-May-18 23:56pm
Comments
Ziee-M 3-May-18 5:40am    
Start by reading/learning sql.
You need to use "join"
https://www.w3schools.com/sql/ is a good place to start

1 solution

would you mind if i asked you to explain and use of "join"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900