Hi
i have a table like this:
customer code amount
-------- ---- ------
x 1 5
x 1 10
x 2 20
x 2 15
-----------------
"amount" has different meanings depending on the "code" and i want to get sum of the "amount" for both code=1 and code=2 . Is this possible with one SQL statement?
Thanks in advance,
Rasa
ps: i am on DB/2 for iseries...
i have a table like this:
customer code amount
-------- ---- ------
x 1 5
x 1 10
x 2 20
x 2 15
-----------------
"amount" has different meanings depending on the "code" and i want to get sum of the "amount" for both code=1 and code=2 . Is this possible with one SQL statement?
Thanks in advance,
Rasa
ps: i am on DB/2 for iseries...