已采纳回答 / 慕粉4296478
改成这个样子就可以了select deptno, (select min(sal) from emp where deptno = e.deptno) from emp egroup by deptnohaving (select min(sal) from emp where deptno = e.deptno ) > (select min(sal) from emp where deptno =20);
2016-12-10