Poredjenje prometa sa nacinom placanja
select g.acKey, g.anForPay- (select sum(t.anAmount) from tHE_MoveCash t where t.acKey = g.acKey)
from tHE_Move g
where g.adDate = '2021-11-22' and g.acDocType = '3200'
select g.acKey, g.anForPay- (select sum(t.anAmount) from tHE_MoveCash t where t.acKey = g.acKey)
from tHE_Move g
where g.adDate = '2021-11-22' and g.acDocType = '3200'