DataDrivenDataDriven
LearnPracticeInterviewDailyJobsCommunity

The Long Climb

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 finance team wants to track each customer's spending trajectory over time. For every transaction, show it alongside that customer's cumulative total spend up to and including that row, breaking same-day ties by transaction_id, with each customer's oldest transactions first.

Summary

Each purchase stacks on the last. Watch it climb.

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