sql query to get both 2nd and 3rd highest salary row code example Example: nth highest salary SELECT salary FROM Employee ORDER BY salary DESC LIMIT N-1, 1