Top Cost Categories
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Problem
Categories are tracked in the budget allocation system, but actual billing amounts live in the cost tracking system. Attribute each cloud charge to the correct budget category by matching the allocation for that service and region. Show the top 3 categories by total amount.
Summary
Three categories eating the budget.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.