Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
FreeDataWarehouse.com
Data Warehouse Design Tutorials and Information
The level of detail of the fact table is known as the grain of the fact table. In this example the grain of
your fact table is monthly sales number per location per product.
In this table the combination of all three dimension table foreign keys make up the primary key in the fact
table. (TM_Dim_Id, PR_ Dim_Id, LOC_ Dim_Id) is our primary key. This is the unique key into our Sales
fact table.
The actual data in your MonthlySales Table will look like this:
A fact table may contain one or more Facts. Usually you create one fact table per business process or
event. For example if you want to analyze the sales numbers and also advertising spending, they are two
separate business processes. So you will create two separate fact tables, one for sales data and one for
advertising cost data. On the other hand if you want to track the sales tax in addition to the sales number,
you simply create one more fact column in the Sales fact table called Tax.
Freedatawarehouse.com © Copyright 2000-2004 All Rights reserved. This site is for data warehouse, dimensional modeling and OLAP
educational purposes only. We do not guarantee the correctness of the content. The risk of using this content remains with the user.
Please read our Privacy Policy Send any comments to: contact . W3C HTML 4.01 compliant.