Return id, account_id, amount_cents and balance_cents for every ledger entry, ordered by account_id, posted_at, id. balance_cents is the account's running balance after that entry, with entries applied in order of posted_at, then immutable id when timestamps tie.
The database is already loaded with the schema and seed data. You are given running_balance.sql (a query that runs but returns the wrong answer). Fix running_balance.sql so it returns the correct result.