Join Indexes (IQ/Oracle)

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.

Creating a Join Index

You can create a join index in any of the following ways:
  • Open the property sheet of a table, click the Join Index tab, and click the Add a Row tool. The join index is created with the selected table specified as the base table.
  • Select Model > Join Indexes, and click the Add a Row tool.

  • Right-click the model or package in the Browser, and select New > Join Index
  • Automatically, for each fact table and the dimension table it references by selecting Tools > Rebuild Objects > Rebuild Join Indexes (see Automatically Creating Join Indexes Through Rebuilding.

Join Index Properties

You 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.

The following tabs are also available:
  • Columns - Lists the columns used for the join index.
  • References - Lists the references used for the join index.