I have 2 tables:
table1 contains (amount, date)
table2 contains (amount, revenue, date)
I need to:
sum table1.amount + table2.amount, sum table2.revenue
according to table1.date and table2.date
like:
select sum(table1.amount + table2.amount), sum(table2.revenue)
from table1,table2
where table1.date and table2.date = '2008-02%'
This will show the result for all year-month: