Top 3 Monthly Costs per Team
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L4
Problem
For each team, surface the three highest unique monthly cost amounts, listed alphabetically by team and then by amount from highest to lowest.
Summary
Three priciest months per team.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.