Hi i have a table as below
year month income source
_______________ ____________
2008 06 100 source1
2008 06 80 source2
2008 06 200 source1
2008 06 100 source2
my output is
year month income
_______________ ____
2008 06 120 (sum(rev) source1 - sum(rev) source2)
may i know what is the SQL query statement can do that????
year month income source
_______________ ____________
2008 06 100 source1
2008 06 80 source2
2008 06 200 source1
2008 06 100 source2
my output is
year month income
_______________ ____
2008 06 120 (sum(rev) source1 - sum(rev) source2)
may i know what is the SQL query statement can do that????
Comment