I know this has probably been asked 100 times, but I don’t know the terminology to search for:
Please tell me how I can “select Top 5”, or an equivalent, by combining a sum from 2 tables?
I need the top 5 results for “Money”, where the “Money” is the combined sum of “Money” from the table named “wallet” and “Money” from the table named “bank”, in this example.
Thanks a lot 🙂
you should use join after using sum
this is some examples
http://www.w3schools.com/sql/sql_join.asp
& another one
http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html