Hi All,
I need a total amounts from a column which is also sum of other columns. How can I do it?
select sum(coalesce(payment1,payment2)) payment
from mytable1 t1
left join mytabel2 t2 on ti.id1=t2.id1
where ...
group by ..
Now I need total of payment, how can I do it?
Thank you so much for any helps!!!
I need a total amounts from a column which is also sum of other columns. How can I do it?
select sum(coalesce(payment1,payment2)) payment
from mytable1 t1
left join mytabel2 t2 on ti.id1=t2.id1
where ...
group by ..
Now I need total of payment, how can I do it?
Thank you so much for any helps!!!