62,047
社区成员
发帖
与我相关
我的任务
分享
select count(*) from 表名 where 出勤='是'
select sum(case when left(gh,1)='E' then 1 else 0 end) as 正式工,
sum(case when left(gh,1)='A' or left(gh,1)='B' then 1 else 0 end) as 派遣工
from Employees where 出勤='是';
... from 表名 where 出勤='是';