SpinTheMic
Pro

Interview practice question

End-of-month balances from transaction data

Data Analyst · SQL for Analytics · Intermediate

You have a transactions table of deposits and withdrawals. How do you calculate each account's end-of-month balance?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Net amount per account per month.
  • Running SUM over months per account.
  • Date spine to include months with no activity.
  • Starting balance.
  • Validate against known balances.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics