Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: DB2 SQL help/idea/suggestion

$
0
0
Author: GuyC
Posted: Fri Oct 07, 2016 7:45 pm (GMT 5.5)

Code:
select O_ID , 'BCCR59',  sum(msr_val_1_qt), sum(msr_val_2_qt)
from mytable
where msr_typ_cd in ('BCCR19','BCCR20','BCCR21')
group by O_ID

_________________
Select * from users where clue > 0
SQLstate=02000


Viewing all articles
Browse latest Browse all 8500

Trending Articles