DataDrivenDataDriven
LearnPracticeInterviewDailyJobsCommunity

The Weight of Everything Before

A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
SQL
Difficulty
medium
Seniority
mid

Interview Prompt

The lifecycle analytics team is studying how each customer's spend accumulates over their lifetime on the platform, because value models need the full trajectory of a buyer rather than a single snapshot. For every purchase, return the customer, the date of that purchase, and that customer's cumulative spend as it stood at that moment.

Summary

Every purchase carries the ones that came before it. Trace the climb.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge