DataDriven
LearnPracticeInterviewDiscussDailyJobs

The Comfortable Middle

A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
hard
Seniority
L5

Problem

A FinOps team is auditing cloud spend and wants the allocations that run hot without being the obvious outliers. Within each team, find the cost allocations above that team's average allocation amount that still fall outside the team's three largest, and return each one's team name and amount.

Summary

Above average but not extreme.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons