Return Sum Function in DB2
DB2 can return SUM function apart within a declaration. If I have the following situation: POWER SELECT SUM (AMOUNT), COUNT (*) FROM table WHERE POWER IN (180002.180092) gives Rama the amount and the Count 180,002, +100.3 which I can return into two values, one is the positive values of the number and one for negative numbers yield: Branch, credit, debit, account 180002, -100, +200.3. How can I accomplish this? Any ideas? Thanks.








