It\'s a question I got this afternoon:
There a table contains ID, Name, and Salary of Employees, get names of the second-highest salary employees, in SQL Server
This might help you
SELECT MIN(SALARY) FROM EMP WHERE SALARY in (SELECT DISTINCT TOP 2 SALARY FROM EMP ORDER BY SALARY DESC )
We can find any nth highest salary by putting n (where n > 0) in place of 2
nth
n
n > 0
2
Example for 5th highest salary we put n = 5
n = 5