Teams Below Double Average Spend
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
Our FinOps system tracks cost allocations by team. Find teams whose total spend is less than twice the overall average team spend. Show the team name, their total spend, and the average spend of their services.
Summary
Teams spending under twice the average.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.