7
I need to add the value of a column in SQL, so it looks like this:
SELECT SUM(qtdsaco) FROM armazem
This code works. Now I need to add the value of the other table, here it is:
SELECT SUM(qtdsaco) FROM armazem2
So I needed to take the result of both and subtract. How do I?
You want to sum it all up and subtract from each other?
– Maniero
Yes I want to sum everything from one column and everything from another and subtract, the value of the qtdsaco column from the store - the qtdsaco value stores 2 two and take the result
– checkmate