Oftentimes when building a website or web application you will encounter the need for a hierarchical structure. It can be for menus, simulating a folder structure or a category hierarchy.

Usually, for a tree structure to be useful

A node (item in the tree) can have a parent - or if not, it will be at the root of the tree All immediate children of a node can be fetched All children and the children's children can be fetched Nodes can be moved to another parent There are several approaches to implementing tree structures with a relational database.

continue reading on vicklr.com

⚠️ This post links to an external website. ⚠️