The Turning Tide
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant feedback.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
Finance is reviewing whether cloud spend climbed or fell across 2026, comparing the first half (Jan through Jun) against the second half (Jul through Dec). For each provider, show how much second-half spend rose above the first half, biggest increase first.
Summary
Two time windows. Did the cloud bill go up or down?
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and checks it automatically.