Schema for a double-entry ledger
CodingMediumCorroborated · 3 reportsLast seen Aug 21, 2026
The question
Design tables for a ledger where every transaction balances. Show the query that returns an account balance, and explain how you prevent a partially-written transaction from ever being visible.
No write-up yet
We have the question but not yet a full breakdown. If you were asked this, the fastest way to improve the page is to say what the interviewer pushed on.
Add what you remember →3 people reported this question.
I was asked this tooAlso reported at Stripe.