---
title: "Discussion on \"Nested Accounts in a Go Ledger: Rolling Up Balances Without Storing One\" | Hashnode"
description: "Discussion on \"Nested Accounts in a Go Ledger: Rolling Up Balances Without Storing One\". How do you show the total under a parent account when the whole system refuses to store a balance? A recursive query, a trigger that refuses to draw a circle, and a rule about what actually has to sum to zero."
url: "https://hashnode.com/posts/account-hierarchy-and-rolled-up-reporting/6a53a5e417934ee5ff657ed7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Nested Accounts in a Go Ledger: Rolling Up Balances Without Storing One](https://notes.sohag.pro/account-hierarchy-and-rolled-up-reporting?utm_source=hashnode&utm_medium=feed)

How do you show the total under a parent account when the whole system refuses to store a balance? A recursive query, a trigger that refuses to draw a circle, and a rule about what actually has to sum to zero.

Jul 12 · 7 min read · notes.sohag.pro  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#golang](https://hashnode.com/tag/golang)
-   [#fintech](https://hashnode.com/tag/fintech)
-   [#postgres](https://hashnode.com/tag/postgres)
-   [#ledger](https://hashnode.com/tag/ledger)

## Written by

[Sohag Hasan](https://hashnode.com/@sohag)

@sohag · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@sohag)

Tech Lead at MobyPay | Certified Laravel Developer | PHP JS GO | DevOps Enthusiast | Open to projects

WhoAmI =&gt; notes.sohag.pro/author

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
