New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Pinterest
SQL Question
AI Insights
Quick Summary
Identify employees whose salaries fall within the top three distinct tiers of their department.
Combine employee records with department details and apply per-group ranking logic.
Format and sort the final output according to specified column priorities.
What This Tests
Partitioning data for independent group-wise calculations.
Handling value ties without skipping subsequent rank positions.
Enriching result sets through multi-table relationships.
Filtering and ordering derived aggregate metrics.
Common Patterns
Inner Join
Window Function
Ranking
Sort
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-