Hai Technocrats,
Now we will see Star and Snowflakes Schema.
Before going to the data models(Star and Snowflakes) let we discuss the dimension and fact tables.
Dimension Table:
- Dimension Table is nothing but a general table. It doesn’t have any special. It contains a description of each and every attribute(column).
- Dimension tables are usually large with number of columns but contains less number of rows.
- Dimension table is defined by its single primary key and it is used to join it to the fact table.
Fact Table:
- Fact table is a primary table in a dimensional model where the numerical, measurements are stored. Simply say Fact table contains Primary key, foreign key and Numerical values, nothing more than that.
- The most useful facts in a Fact table are numeric and additive.
- A Star Schema is a database design which contains a centrally located Fact table surrounded by dimension table.
- In the above Figure CUSTOMER, DATE, PRODUCT, VENDOR are the Dimension tables and ORDER is the Fact Table.
Snowflake Schema:
- In a Snowflake Schema a denormalized dimension table is split into one or more dimensional tables which results in partially normalized and fully normalized dimension.
- This schema is used to split the dimension into multiple, if the dimensions has too many columns in it. This helps to reduce the size of the dimension table.
In next posting let we see few simple what is BRIDGE Table and CONFORMED Dimension Table.
0 comments:
Post a Comment