Ebb and Flow
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L4
Problem
A finance team tracks revenue momentum by watching how each month stacks up against the one before it. Total each month's transaction revenue and show how it moved, in percent, from the immediately preceding month.
Summary
The rise and fall of revenue, one month against the last.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.