2,497
社区成员
发帖
与我相关
我的任务
分享
select slm,substr(id,1,1) lb,sum(zajs) ajsnum,sum(wz) wznum,sum(tzz) tzznum,sum(dt) dtnum from ywk_xmxx join xtwh_struct_class on dh like 'substr(id,1,1)%' where length(slh)=2 and
jgrq>=To_date('2010-7-1 00:00:00','yyyy-mm-dd hh:mm:ss') and
jgrq<=To_date('2010-10-16 23:59:59','yyyy-mm-dd hh:mm:ss') group by slm,substr(id,1,1)
select slm,substr(id,1,1) lb,sum(zajs) ajsnum,sum(wz) wznum,sum(tzz) tzznum,sum(dt) dtnum from ywk_xmxx join xtwh_struct_class on dh like 'substr(id,1,1)%' where length(slh)=2 and
jgrq>=To_date(2010-7-1 00:00:00,'yyyy-mm-dd hh:mm:ss') and
jgrq<=To_date(2010-10-16 23:59:59,'yyyy-mm-dd hh:mm:ss') group by slm,substr(id,1,1)
select slm,substr(id,1,1) lb,sum(zajs) ajsnum,sum(wz) wznum,sum(tzz) tzznum,sum(dt) dtnum from ywk_xmxx join xtwh_struct_class on dh like 'substr(id,1,1)%' where length(slh)=2 and
jgrq>=To_date(2010-7-1 00:00:00,'yyyy-mm-dd hh:mm:ss') and
jgrq<=To_date(2010-10-16 23:59:59,'yyyy-mm-dd hh:mm:ss') group by slm,substr(id,1,1)