Database
How to Represent and Query Hierarchical Data in SQL
A tutorial on how to build and query a hierarchical table using a relational database.
6 min readNov 29, 2021
Given its flat nature, a relational database is not suitable to represent hierarchical data. However, thanks to some tricks, you can transform a relational database into good storage for…