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
Try this to get the respective nth highest salary.
SELECT * FROM emp e1 WHERE 2 = ( SELECT COUNT(salary) FROM emp e2 WHERE e2.salary >= e1.salary )