count

select deptno as 部门,count(*) as 人数
from emp group by deptno;  
--统计各个部门的人数

posted @ 2017-07-14 17:33  妤轩  阅读(113)  评论(0编辑  收藏  举报