阅读背景:

请教高手union all与group by一起用时出错的一个问题

来源:互联网 
union all
select distinct t1.lineid,'合计' as linesum,t2.speedlevel,sum(decode(t2.exceptionitem,0,t2.level4count,0)) as a from pw_run_record t1,pw_detect_exceptionstatic t2,pw_detect_tqistatic t3 where t1.detectid=t2.detectid and  t1.detectid=t3.detectid  select distinct t1.lineid,'合计' as linesu



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: