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
- L4
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.
Summary
Headcount and compensation. The dashboard view.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.