求一下代码
最后输出结果pno 出勤 缺勤xxx 1 0xxx 0 4…
select pno,(select count() from 表名 where pno=a.pno and acondition='出勤') 出勤, (select count() from 表名 where pno=a.pno and acondition='缺勤') 缺勤 from 表名 a group by pno