7.2 修改SQL语句 SELECT deptno FROM dept WHERE deptno NOT IN (SELECT deptno FROM emp); SELECT deptno FROM dept WHERE NOT EXISTS (SELECT 1 FROM emp WHERE emp.deptno = dept.deptno); SELECT deptno FROM dept MINUS SELECT deptno FROM emp; SELECT dept.deptno FROM dept, emp WHERE dept.deptno = emp.deptno(+) AND emp.deptno IS NULL; |