Home
/
Questions
/
Coding
/
Second-best seller in each category
caseSQL
Coding question · Top N Per Group
Hard
Asked at Amazon
Second-best seller in each category
Window rank + filter for arbitrary Nth place.
Unlock with Pro
→
Back to all coding questions
The Brief
← Previous
Assign employees to salary quartiles
Next →
Employees who never took leave in 2024