Hi
I am tring to subtract the sum of 2 columns values from two different table but I could not do it
Table A
ID | Cost
101 | $19
103 | $25
102 | $18
106 | $14
Table B
ID | Sell
101 | $24
103 | $28
102 | $21
106 | $16
SELECT (SELECT SUM( “Sell” ) FROM “B”) -
(SELECT SUM( “Cost” ) FROM “A”)
As Binfet