Daily Closing Balance
Medium
Reconciliation & Balances
Given transactions per date, return each date with the closing balance (cumulative sum up to and including that date). Order by date.
Table schema
Txns(txn_date DATE, amount INT)Sample data
txn_date | amount
2026-05-01 | 100
2026-05-01 | -40
2026-05-02 | 30
2026-05-04 | -50
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.