correlated subquery to find nth highest salary code example Example: n highest salary in sql SELECT salary FROM Employee ORDER BY salary DESC LIMIT N-1, 1