Skip to main content
The LEGAL_ENTITY_HIERARCHY table contains the multi-level legal entity organizational structure.

Unique Key

Incoming Joins

Populating From a ParentChild Table

The LEGAL_ENTITY_HIERARCHY table does not have to be created and populated directly. Instead, a LEGAL_ENTITY_PARENT_CHILD table can be created to store the parent-child relationships. With this table and the following SQL script, you can create a series of intermediate views to populate the multiple levels of the LEGAL_ENTITY_HIERARCHY table:
Views can impact query and aggregation performance.Injecting the results of the final constructed view into a table can improve query performance. The tradeoff is that this final table will need to be manually kept up to date if the underlying parent-child tables are updated.