用emp表求部门人数 相同的 部门编号
如题 ................... 试试下面的语句看:select a.deptno
from (select deptno, count(*) as total
from emp group by deptno ) a,
(select deptno, count(*) as total
from emp group by deptno ) b
where a.total=b.total and a.deptno!=b.deptno;
页:
[1]