Hi there,
Anyone to help me on sql code for SUM.
I need a query that gets the SUM of one table column and subtract it from the sum from another table column:
I tried this but it gave me wrong answer; SELECT SUM(i.amount-p.amount) FROM income i, payments p;