Loading...
Top 2 Cloud Services by Cost
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- junior
Problem
For 2026 cloud spending, find the top 2 services by total cloud cost, but only for services that also have cost allocations on file. Exclude any records where the billing date is null (cancelled charges). Show the service name and total cloud cost 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.