有人可以建议从包含三个“NOT NULL”字段、sal(salary)、name、empno(employee number) 的表“EMP”中选择第二高薪水的创新查询吗?
我有一个:
Select sal
from EMP A
where 1 = (select count(DISTINCT SAL) from EMP B whre A.sal < B.sal);
select DISTINCT sal
from emp a
where 1 = (select count(DISTINCT sal) from emp b where a.sal < b.sal);