Search ⌘K
T
Twitter

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...

Interview Core Track
Hard
35 min
filtering

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

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.

Prereq: query basics

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.

Pro question
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 problems
Editor
SQL 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.