日期:2014-05-16 浏览次数:20593 次
select deptno from dept
select deptno from emp
select deptno from dept minus select deptno from emp
select deptno from dept union select deptno from emp
select deptno from dept union all select deptno from emp
select deptno from dept intersect select deptno from emp
select deptno,dname from dept where deptno not in (select distinct (deptno) from emp)
select deptno,dname from dept where deptno in (select deptno from dept minus select deptno from emp )