July 2012
Intermediate to advanced
816 pages
27h 38m
English
Let’s visualize the organizational chart before you start populating the Employee table with hierarchical data. Figure 7-1 shows the hierarchy of employees in your fictional organization.

Figure 7-1. Hierarchical organizational chart.
The first row added to a hierarchical table is always the root node of the tree, and there can be only one root. Additional rows beneath the root are then added as child and grandchild nodes, and so on. Nodes can be rearranged as needed by invoking methods on the hierarchyid values. The tree can grow both broad (with many siblings) and deep (with many descendants).
You begin ...
Read now
Unlock full access