It can be done something like this:SELECT COALESCE(t1.date,t2.date), ISNULL(SUM(t1.amount),0) + ISNULL(SUM(t2.amount),0), ISNULL(SUM(t2.revenue),0)FROM table1 t1 FULL JOIN table2 t2 ON t1.date = t2.dateWHERE COALESCE(t1.date,t2.date) >= '20080201' AND COALESCE(t1.date,t2.date) < '20080301'GROUP BY COALESCE(t1.date,t2.date)
All those full joins and coalesce functions are to account for cases where you may have data only in one table or the other for some of the days. If that is not the case, you can throw out the coalesce/isnulls and use an inner join.