Loading...
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
- mid
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.
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.