![]() | ![]() |
Home |
|
|
WarehouseArchitect - User's Guide |
|
| Part 3 WarehouseArchitect Model |
|
| Chapter 14: Defining Multidimensional Objects |
|
| Defining fact tables and dimension tables |
A WAM can have a number of central fact tables linked to any number of dimension tables. The fact tables are usually the first tables you create when you create a WAM. Any other fact tables in the WAM are usually generated automatically as a result of aggregating or partitioning the central fact table. These fact tables form a hierarchy of facts.
A fact table is attached to a fact. When you create a fact table, WarehouseArchitect automatically creates a fact with the same name and attaches it to the table.
A dimension table is attached to a dimension. When you create a dimension table, WarehouseArchitect automatically creates a dimension with the same name and attaches it to the table.
The way in which you organize fact and dimension tables depends on the type of data warehouse schema you create.
A table symbol appears at the click position.
At creation, a table is named Tab_n, where n is the number of the table in the order of creation of objects in the model.
The table property sheet appears.
or
Type a name and click the Equals button in the Code column.
or
Type a code and click the Equals button in the Name column.
or
Select Dimension from the Type dropdown listbox
When you use a PDM as the basis for a WAM, you can define the existing tables as fact or dimension tables.
The table property sheet appears. By default, the table type is None.
or
Select Dimension from the Type dropdown listbox.
A symbol corresponding to the selected table type appears in the top left corner of the table symbol.
A fact table can have more than one attached fact. A dimension table can have more than one attached dimension.
or
Double-click a dimension table symbol.
The object property sheet appears.
If you selected a fact table in step 1, the List of Facts appears. It displays the facts attached to the table. By default, it contains a fact with the same name as the table.
If you selected a dimension table in step 1, the List of Dimensions appears. It displays the dimensions attached to the table. By default, it contains a dimension with the same name as the table.
If you selected a fact table in step 1, a list of available facts appears.
If you selected a dimension table in step 1, a list of available dimensions appears.
or
Select one or more dimensions.
Fact tables have associated facts, and dimension tables have associated dimensions.
When you modify the type of a fact or dimension table, you must indicate whether to simply detach the associated facts or dimensions from the table, or to delete them from the dictionary.
| Confirmation choice
| Result
|
|---|---|
| Delete the existing objects
| Object deleted from dictionary
|
| Detach only
| Object remains in dictionary but is no longer attached to the table
|
or
Double-click a dimension table symbol.
The object property sheet appears.
A confirmation message asks you how you want to delete the facts or dimensions associated with the table.
|
|