with m as ( select fProjectName, fPM_Performance emp from t union all select fProjectName, fPM_Acceptance emp from t ) select emp, count(*) from m group by emp --或者结合 pivot
版主的这个sql可以搞定,只是要union all 改成union 去下重。
17,086
社区成员
55,238
社区内容
加载中
试试用AI创作助手写篇文章吧