In the Table list on the left side of the dialog, select the table that the foreign key Select the columns in the left table that the foreign key references. Select the columns in the right table that make up the foreign key columns. Optional To specify a

Working with Logical Tables, Joins, and Columns 8-9 The Logical Join dialog appears. 3. Type a name for the logical join.

4. In the Table lists on the left and right side of the dialog, select the tables that the

logical join references.

5. Optional To specify a driving table for the key, select a table from the Driving

list, and an applicable cardinality. This option is useful for optimizing the manner in which the Oracle BI 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. See Specifying a Driving Table for more information about driving tables.

6. Select the join type from the Type list, or keep the default value.

7. Set the Cardinality for each side of the join, or keep the default values.

8. Click OK.

Creating Logical Foreign Key Joins with the Joins Manager Logical foreign key joins might be needed if the Oracle BI Server is to be used as an ODBC data source for certain third-party query and reporting tools. Typically, you should not create logical foreign keys. This capability is in the Administration Tool to provide compatibility with previous releases. To create a logical foreign key join with the Joins Manager: 1. In the Administration Tool, select Tools, then select Options. 2. In the General tab of the Options dialog, select Allow logical foreign key join creation .

3. Click OK.

4. Select Manage, then select Joins to display the Joins Manager.

5. Select Action New Logical Foreign Key.

6. In the Browse dialog, double-click a table to display the Logical Foreign Key

dialog.

7. Type a name for the foreign key.

8. In the Table list on the left side of the dialog, select the table that the foreign key

references.

9. Select the columns in the left table that the foreign key references.

10. Select the columns in the right table that make up the foreign key columns.

11. Optional To specify a driving table for the key, select a table from the Driving

list, and an applicable cardinality. 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. 8-10 Metadata Repository Builders Guide for Oracle Business Intelligence Enterprise Edition This option is useful for optimizing the manner in which the Oracle BI 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. See Specifying a Driving Table for more information about driving tables.

12. Select the join type from the Type list, or keep the default value.