Search
⌘K

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

Amazon


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late December, 2024

Amazon

Amazon

Intern

Write a SQL query similar to finding the nth highest salary

Comments

Your account is free and you can post anonymously if you choose.