查询最低工资大于20号部门最低工资的部门号和部门的最低工资.
select deptno,(select min(sal) from emp where deptno = e.deptno)
from emp e
where (select min(sal) from emp) > (select min(sal) from emp where deptno =20);
为什么没有查询结果?
select deptno,(select min(sal) from emp where deptno = e.deptno)
from emp e
where (select min(sal) from emp) > (select min(sal) from emp where deptno =20);
为什么没有查询结果?
2016-12-10
举报