Generic SQL query to get Nth highest salary
Filed under Yatra.com
The question
Given a table with EmpID and Salary, write a generic SQL query to find the Nth highest salary.
No write-up yet. Related questions below have one.
Related Yatra.com questions
Collected from public candidate posts and coding forums. Updated Nov 2026.