6,128
社区成员
发帖
与我相关
我的任务
分享
SELECT dtSTime, dtETime,SUM(iCount) AS icount,(case when tLP.dDoPrice=0 then '小' else '大' end) as cStyle
FROM tLP
GROUP BY dtSTime, dtETime,case when tLP.dDoPrice=0 then '小' else '大' endselect dtstime,dtetime,sum(icount) as icount,
case when dDoPrice=0 then '小' else '大' end as cStyle from tLP
group by dtstime,dtetime,case when dDoPrice=0 then '小' else '大' end
select dtSTime, dtETime, sum(iCount) as iCount from tLP
group by dtSTime, dtETime