Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 177. Nth Highest Salary
Return the nth highest distinct salary from the Employee table (or null if there are fewer than n distinct salaries). This tests handling duplicates and correct ordering/ranking in SQL (e.g., using DISTINCT with ORDER BY or window functions).
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late December, 2024
Amazon
Intern
Write a SQL query similar to finding the nth highest salary
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.