Loading...
Cost Share Within Category
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
The FinOps team wants to see each allocation's weight within its spending category, but only for compute, storage, and network. For each entry in those categories, show the allocation ID, category, amount, and what percentage of that category's total it represents. List by category then allocation ID.
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.