How to find fifth highest salary in a single query in SQL Server
SELECT TOP 1 salary FROM ( SELECT DISTINCT TOP n salary FROM employee ORDER BY salary DESC) a ORDER BY salary where n > 1 -- (n is always greater than one)
You can find any number of highest salary using this query.