复杂的sql语句,按部门统计人数: --按部门统计人数 SELECT o.OUGUID AS OUGUID, o.OUNAME AS OUNAME, IFNULL() AS USERNUM, ) END) AS CallNoCount, END) AS QuestionCount, END) AS PassCount, END) AS BanjianCount FROM (SELECT ROW_ID,`STATUS`,handleuserguid,CALLTIME FROM audit_queu