The Weight of the Cloud
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
A finance team is closing out the cloud books quarter by quarter, counting only costs billed in 2026. Weight each service's cost by every allocation booked against that same service, then report each quarter's total weighted spend, earliest quarter first.
Summary
Not every dollar counts the same. Close the quarter.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.