The Cloud Bill
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Problem
Show monthly cloud spend pivoted by provider. Each month should be a row, with separate columns showing total amount for AWS, GCP, and Azure. Only include completed billing entries. Return the month and each provider's total.
Summary
Every provider sent an invoice. Every month tells a different story.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.