0% found this document useful (0 votes)
103 views7 pages

Star and Snowflake Schema

Star schema contains a fact table surrounded by dimension tables, while snowflake schema has a fact table surrounded by dimension tables which are further surrounded by sub-dimension tables. Star schema uses a single join between fact and dimension tables, while snowflake schema requires multiple joins between fact, dimension, and sub-dimension tables. Star schema is simpler but uses more space, while snowflake schema is more complex but uses less space due to lower redundancy.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views7 pages

Star and Snowflake Schema

Star schema contains a fact table surrounded by dimension tables, while snowflake schema has a fact table surrounded by dimension tables which are further surrounded by sub-dimension tables. Star schema uses a single join between fact and dimension tables, while snowflake schema requires multiple joins between fact, dimension, and sub-dimension tables. Star schema is simpler but uses more space, while snowflake schema is more complex but uses less space due to lower redundancy.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Star Schema

Dimension
Dimension

Fact Table

Dimension Dimension

Ankit Sharma
SnowFlake Schema

Dimension Dimension

Dimension Dimension

Fact Table

Dimension Dimension

Dimension Dimension
Star vs SnowFlake Schema

Star schema contains a fact table surrounded by


dimension tables.

In snowflake, One fact table


surrounded by dimension table which are in turn
surrounded by dimension table.

Star vs SnowFlake Schema

In a star schema, only single join creates the


relationship between the fact table and any
dimension tables.

A snowflake schema requires many joins to


fetch the data
as it joins facts with dimension and dimension
with sub-dimensions.
Star vs SnowFlake Schema

Star schema is a top-down model


and uses more space.

SnowFlake schema is a bottom-up model


and uses less space.
Star vs SnowFlake Schema

Star Schema's design is very simple and queries


take less time to execute.

Snowflake Schema's design is complex and


queries take more time to execute.
Star vs SnowFlake Schema

Star schema has less number of foreign keys


and high data redundancy.

While Snowflake has more number of foreign


keys and low data redundancy.

You might also like