Wherein:
select * from table1 t1, table2 t2
you actually intersect both tables, which results in a Cartesian product (each row in t1 is combined with each row in t2).
You probably have no JOIN condition:
select sum(t1.total_amount), sum(t2.total_amount) from t1 join t2 on t1.[???] = t2.[???]
EDIT:
based on your comment, it looks like you want to combine these two separate queries select 't1', sum (total_amount) from t1 union select 't2', sum (total_amount) from t2
This displays the sums in two rows instead of columns, but this is the easiest way AFAIK.
jeroenh
source share