Loading...

Running Total With CTE

A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
hard
Seniority
mid

Problem

The FinOps dashboard needs a daily cloud cost time series with a running cumulative total so stakeholders can see how spending accumulates through the billing period. Show each billing date, its daily spend, and the cumulative spend through that date.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.