Minimum Days to Reach Rolling Sum of 1000

SQL coding challenge · Difficulty: hard · +300 XP

The growth team is tracking when the business first crosses a major milestone. Find the earliest date where the cumulative (running) sum of daily sales first reaches or exceeds 1000.

Return: date, sales, running_total (only the milestone row).

Solve this challenge on PySpark.in