DataDrivenDataDriven
LearnPracticeInterviewDiscussDailyJobs

Above the Curve

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

Domain
SQL
Difficulty
medium
Seniority
L4

Problem

The growth team is building a high-value customer segment for an upcoming campaign. Compute each user's total spend, then surface only the users who land above the average customer's spend, showing their ID, total, and how far above that benchmark they sit. List the biggest spenders first.

Summary

Spenders who break from the pack.

Practice This Problem

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

Related

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