Interview Core Track · Hard · 35 min
Top Department Salaries
Twitter wants a scorecard for top department salaries. The compensation team wants the top salary levels in each department. Rank salaries within each depart...
Company labels are directional practice context, not official interview guidance.
Objective
Practice filtering through a Twitter-tagged business scenario.
Approach
Use this track to improve speed, edge-case handling, and accuracy under timed conditions.
Company context
Company labels are directional practice context, not official interview guidance.
Twitter wants a scorecard for top department salaries. The compensation team wants the top salary levels in each department. Rank salaries within each department from highest to lowest, keep the top three ranks, and return each department and salary without duplicate salary rows.
This is a Pro question
Upgrade to Pro to unlock this prompt, the SQL workspace, and all 254 problems.
Upgrade to Pro — unlock all 254 problemsSQL workspace
Run queries against the protected question data, then submit once the result shape looks right.
Sign in to run SQL
Create a free account or sign in before running queries against protected question data.