全部博文(136)
分类: Oracle
2008-04-11 15:11:32
SELECT SUM( DECODE( JBXX.RYLB, '04', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '05', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '06', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '07', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '08', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '01', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '02', 1, 0 ) ), SUM( DECODE( JBXX.RYLB, '03', 1, 0 ) ) INTO FROM WHERE |