Loading...

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
junior, mid

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.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.