I have a situation where I want to sum difference between two tables. problem is that a row can exist in the second table and then I want to insert it as new row.
Pseudo
SELECT T1.seller, T1.code, T1.amount - T2.amount
Look at the image for an explanation
1 Answer