Siebel Analytics Server Administration Guide > Creating and Administering the Business Model and Mapping Layer in a Repository > Defining Logical Joins >

Defining Logical Joins with the Joins Manager


You can use the Joins Manager to view logical join relationships and to create logical foreign keys and complex joins.

This section includes the following topics:

Creating a Logical Foreign Key

Typically, you should not create logical foreign keys. This capability is in the Administration Tool to provide compatibility with previous releases. Logical foreign key joins might be needed if the Analytics Server is to be used as an ODBC data source for certain third-party query and reporting tools.

To create a logical foreign key

  1. In the Administration Tool toolbar, select Manage > Joins.

    The Joins Manager dialog box appears.

  2. Select Action > New > Logical Foreign Key
  3. In the Browse dialog box, double-click a table.

    The Logical Foreign Key dialog box appears.

  4. Type a name for the foreign key.
  5. In the Table drop-down list on the left side of the dialog box, select the table that the foreign key references.
  6. Select the columns in the left table that the foreign key references.
  7. Select the columns in the right table that make up the foreign key columns.
  8. (Optional) To specify a driving table for the key, select a table from the Driving drop-down list, and an applicable cardinality.

    This is for use in optimizing the manner in which the Siebel Analytics Server processes multi-database inner joins when one table is very small and the other table is very large. Do not select a driving table unless multi-database joins are going to occur. For more information about driving tables, see Specifying a Driving Table.

    CAUTION:  Use extreme caution in deciding whether to specify a driving table. Driving tables are used for query optimization only under rare circumstances and when the driving table is extremely small, that is, less than 1000 rows. Choosing a driving table incorrectly can lead to severe performance degradation.

  9. Select the join type from the Type drop-down list.
  10. To open the Expression Builder, click the button to the right of the Expression pane.

    The expression displays in the Expression pane.

  11. Click OK to save your work.

Creating a Logical Complex Join

The use of logical complex joins is recommended over logical key and foreign key joins.

To create a logical complex join

  1. In the Administration Tool toolbar, select Manage > Joins.

    The Joins Manager dialog box appears.

  2. Select Action > New > Logical Complex Join.

    The Logical Join dialog box appears.

  3. Type a name for the complex join.
  4. In the Table drop-down lists on the left and right side of the dialog box, select the tables that the complex join references.
  5. (Optional) To specify a driving table for the key, select a table from the Driving drop-down list, and an applicable cardinality.

    This is for use in optimizing the manner in which the Siebel Analytics Server processes multi-database inner joins when one table is very small and the other table is very large. Do not select a driving table unless multi-database joins are going to occur. For more information about driving tables, see Specifying a Driving Table.

    CAUTION:  Use extreme caution in deciding whether to specify a driving table. Driving tables are used for query optimization only under rare circumstances and when the driving table is extremely small, that is, less than 1000 rows. Choosing a driving table incorrectly can lead to severe performance degradation.

  6. Select the join type from the Type drop-down list.
  7. Click OK.
Siebel Analytics Server Administration Guide