Join Hierarchy Overview

All join relationships supported by Sybase IQ must have a hierarchy. Think of a join hierarchy as a tree that illustrates how all the tables in the join are connected.

Sybase IQ join hierarchies have one table at the top of the tree where the join ends. This table, known as the top table, does not connect to any other tables, although other tables connect to it. The top table always represents the “many” side in a one-to-many relationship.

Depending on the complexity of the join, there could be a straight line of tables down to the bottom of the tree and the beginning of the join, or there could be many branches off to the side as you move down the tree. The following figure shows a join hierarchy with two branches.

Hierarchy of a join relationship
Shown is a hierarchy of a join relationship. The top table is Table F. In one branch, Tables A and B are at the bottom, both connect up to Table D, which connects up to Table F at the top. In the other branch, Table C is at the bottom, it connects up to Table E, which connects up to Table F at the top.
In a join hierarchy:
Related concepts
Relationships in Join Indexes
The Join Hierarchy in Query Resolution
Steps in Creating a Join Index
Examples of Join Relationships in Table Definitions
Specifying the Join Type When Creating a Join Index
Specifying Relationships When Creating a Join Index
Types of Join Hierarchies