Запрос, чтобы найти вторую самую высокую зарплату
SELECT MAX(SALARY) FROM Employee WHERE SALARY < (SELECT MAX(SALARY) FROM Employee)
Mohanbabu Sakthivelu
SELECT MAX(SALARY) FROM Employee WHERE SALARY < (SELECT MAX(SALARY) FROM Employee)
-*FOR THIRD HIGHEST SALARY*
Select top 1 from (select top 3 salary from emp order by salary desc)
order by asc