Loading...
Department Cost by Status
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 finance team wants a department-level cost summary. For each team, count the number of allocations categorized as 'active' and compute the total cost across all allocations for that team.
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.