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

Instead of creating and populating the LEGAL_ENTITY_HIERARCHY table directly, you can create a LEGAL_ENTITY_PARENT_CHILD table 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:
With this table and the SQL script included in the online documentation, you can create a series of intermediate views to populate the multiple levels of the LEGAL_ENTITY_HIERARCHY table.
For performance reasons, views may 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.