SELECT B .部门, B. 用户, COUNT(A .user_name) AS 处理次数,
SUM(COUNT (A. user_name)) over(partition by B.部门 ) as 部门处理次数 FROM wf_task_process_info_2 A
JOINTEMP B on A .user_name= B.用户名
WHERE A .time between@beginand@endGROUPBY B. 部门, B.用户
posted on
2016-01-18 17:49alexmen
阅读(448)
评论(0)
编辑收藏举报