What i s Fact?
A summarizable numeric value used to monitor the business flow is called the Fact/measure.
Fact will act as Key performance indicator for business.
Example: salesamount,costamount,profit,units in stock etc.
Dimension : Dimension is descriptive Text used to analyse the facts
example product,customer
Business Key:
In a dimension table which column loading the data of OLTP table primary key is called business key.
Usage :To join the dimension tables and OLTP tables in data loading Process.
Surrogate Key:
A primary key and auto generated column in a dimension table is called Surrogate Key.
Usage:
Dimension Table : Dimension attributes presented in dimension table .Every dimension should have key column i.e primary key.
Fact table: Facts/measures stored in fact table .Fact table contains Foreign key referred from dimension table .
Dimension Types :
Fact/Measure Types :
The three schema models we use to organize the dimension tables fact tables in dimensional modelling .
1.Star schema:
A summarizable numeric value used to monitor the business flow is called the Fact/measure.
Fact will act as Key performance indicator for business.
Example: salesamount,costamount,profit,units in stock etc.
Dimension : Dimension is descriptive Text used to analyse the facts
example product,customer
Business Key:
In a dimension table which column loading the data of OLTP table primary key is called business key.
Usage :To join the dimension tables and OLTP tables in data loading Process.
Surrogate Key:
A primary key and auto generated column in a dimension table is called Surrogate Key.
Usage:
- Surrogate key provides uniqueness to identify a row in the dimension table
- Surrogate key used to combined the dimension table and fact table.
Dimension Table : Dimension attributes presented in dimension table .Every dimension should have key column i.e primary key.
Fact table: Facts/measures stored in fact table .Fact table contains Foreign key referred from dimension table .
Dimension Types :
- Standard Dimension
- Parent child Dimension
- Confirmed Dimension
- Degenerated Dimension
- Role Play Dimension
Fact/Measure Types :
- Additive measure
- semi additive measure
- Non-additive Measure
The three schema models we use to organize the dimension tables fact tables in dimensional modelling .
1.Star schema:
- Fact Table surrounded by dimension tables looks like star .
- Dimension tables are de-normalized.
- No relation between dimension tables
2.Snow Flake schema:
- Fact table surrounded by few dimension tables only.
- Dimension tables are normalized.
- Relationship between the Dimension tables .
3.Integrated Schema Model:
- Combination of star and Snowflake schema
- Confirmed dimensions
- fact less fact tables
- degenerated dimensions.
No comments:
Post a Comment