Answers for "nth maximum salary in sql"

SQL
1

second max salary in sql

SELECT MAX(SALARY) 'SECOND_MAX' FROM EMPLOYEES
WHERE SALARY <> (SELECT MAX(SALARY) FROM EMPLOYEES);
Posted by: Guest on November-27-2020
0

n highest salary in sql

SELECT salary FROM Employee ORDER BY salary DESC LIMIT N-1, 1
Posted by: Guest on February-07-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language