department2 不为“福建部”的列,将值赋予department1
WorkBook8.cpt
在帆软中处理,可行吗
1.cpt
SELECT (case when department2 = '福建部' THEN department1 else department2 end) AS 部门,count(*) as 统计
FROM [表名]
group BY (case when department2 = '福建部' THEN department1 else department2 end)
测试.cpt
可以了,自己参考下