SELECT id, amount,
       SUM(amount) OVER (PARTITION BY account_id ORDER BY id) AS running
FROM ledger_sample;
