小莫:按照衢州的这个模板,小莫下周对梧州、贺州、荆州进行专题分析。王创博对 衢州 孝感 黄石 专题分析。姜萌萌对温州专题分析一下(只分析我们平台)。分析的流程每月至少在100单以上。
分析的sql语句如下:--统计当前月流程任务数量,降序排列
该语句使用了分组
select xx.catalogname||'_'||xx.processname liuchengname,shuliang from
(select bb.processname,cc.catalogname,count(1) shuliang from bpmi_task aa join bpmd_process bb on aa.processid=bb.processid
join bpmd_catalog cc on bb.catalogid=cc.catalogid
where to_char(aa.begintime,'yyyymm')=to_char(sysdate,'yyyymm')
group by bb.processname,cc.catalogname) xx
order by shuliang desc