Click OK in the Physical Foreign Key dialog. Repeat steps 2 and 3 for the other associated dimension table. Ensure that one of the associated dimension tables is joined to the fact table. Click the Add button in the upper right corner of the Logical Table

8-24 Metadata Repository Builders Guide for Oracle Business Intelligence Enterprise Edition Creating Joins in the Physical Layer for Bridge and Associated Dimension Tables To model bridge tables in the Physical layer, create joins between the bridge table and the associated dimension tables. To create physical joins for a bridge table and its associated tables: 1. In the Administration Tool, in the Physical layer, select the fact, bridge, and associated dimension tables. Then, right-click the objects and select Physical Diagram , and then choose Selected Objects Only. 2. With the Physical Diagram displayed, click New Join on the toolbar. Then, select the bridge table, and then select one of the dimension tables.

3. Click OK in the Physical Foreign Key dialog.

4. Repeat steps 2 and 3 for the other associated dimension table.

5. Ensure that one of the associated dimension tables is joined to the fact table.

Figure 8–7 shows joins between the example Physical tables in the Physical Diagram. Figure 8–7 Joins Between the Example Tables in the Physical Diagram Modeling the Associated Dimension Tables in a Single Dimension In the Business Model and Mapping layer, you can choose to model the two dimension tables associated with a bridge table in a single dimension, or in two separate dimensions. To model the associated dimension tables in one dimension, create a second logical table source that maps to the bridge table and the other dimension table, and then add columns from the other dimension table. Providing two separate logical table sources makes queries more efficient, because it ensures that queries against a single dimension table do not involve the bridge table. To model the dimension tables associated with a bridge table in a single dimension: 1. Drag objects from the Physical layer to the Business Model and Mapping layer, except the bridge table and the associated dimension table that is not joined to the fact table. For the example described in the previous sections, you would drag all objects except for the Assignment and Employee tables. 2. In the Business Model and Mapping layer, right-click the dimension table that is joined to the fact table Jobs in our example and select New Object, then select Logical Table Source . 3. In the Logical Table Source dialog, provide a name for the new bridge table source. It is a good practice to use the bridge table name as the name of the source for example, Assignment. Working with Logical Tables, Joins, and Columns 8-25

4. Click the Add button in the upper right corner of the Logical Table Source dialog.

Then, select the bridge table from the Name list Assignment in our example and then click Select.

5. Click the Add button again and select the associated dimension table that is not