Second, third and nth highest salary queries
Filed under Gainsight
The question
Write a query for the second highest salary, then the third, then a generalized query for the nth maximum salary.
No write-up yet. Related questions below have one.
Related Gainsight questions
Collected from public candidate posts and coding forums. Updated Nov 2026.