A join index is a special type of index, which represents a full outer join of two or more tables, where all rows from both tables are included in the result (with NULL returned for any column with no matching value). The query engine may use this full outer join as a starting point for queries that include left outer, right outer, and inner joins.
Join indexes are defined from references. You can create a join index for any set of columns that your users commonly join to resolve queries.
While some references are based on keys, Sybase IQ allows you to create user-defined references to include the exact join required by your foreseen queries.
Select Add a Row tool.
, and click theYou can modify an object's properties from its property sheet. To open a join index property sheet, double-click its Browser entry in the Join Indexes folder.
The General tab contains the following properties:
Property |
Description |
---|---|
Name |
The name of the item which should be clear and meaningful, and should convey the item's purpose to non-technical users. |
Code |
The technical name of the item used for generating code or scripts, which may be abbreviated, and should not generally include spaces. |
Stereotype |
Sub-classification used to extend the semantics of an object without changing its structure; it can be predefined or user-defined. |
Comment |
Descriptive label for the join index. |
Base table |
Specifies the name of the table or materialized view that stores the join index. |
DBSpace |
[IQ only] Specifies the DBSpace that will contain the join index. |