SQL Practice Logo

SQLPractice Online

Level 4 - Mid-LevelQuery-Based Questions

Running Account Balance

Return account_id, txn_date, amount, and running_balance ordered by txn_date for each account.

Schema Context

transactions(id, account_id, txn_date, amount)