How can I find the Nth highest salary in a table containing salaries in SQL Server?
Very simple one query to find nth highest salary
SELECT DISTINCT(Sal) FROM emp ORDER BY Salary DESC LIMIT n,1