About the “Cumulative Cashflow Running Total” SQL Problem
Business Scenario
Treasury and cash management require real-time visibility into the rolling liquidity trajectory as daily transactions settle.
Expected Output & Criteria
Time-series showing entry_date, daily_net, and running_balance.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE cashflow_ledger (
entry_id INT PRIMARY KEY,
entry_date DATE NOT NULL,
inflow_amount NUMERIC(12, 2) NOT NULL DEFAULT 0.00,
outflow_amount NUMERIC(12, 2) NOT NULL DEFAULT 0.00
);Target SQL Clauses & Operators
SUMOVERORDER BY
Want more Window Functions practice?
Explore the full syllabus of 14 exercises, syntax guides, and interview pitfalls.