0% found this document useful (0 votes)
28 views6 pages

Data Warehouse Schema

Uploaded by

Adrine King
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)
28 views6 pages

Data Warehouse Schema

Uploaded by

Adrine King
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/ 6

Data Warehouse Schema

Dr. Vishal Patidar


Director
Sardar Patel College of Administration & Management
Bakrol-Anand
Types of Data Warehouse Schema:

Following are 3 types of multidimensional schemas


each having its unique advantages.

• Star Schema

• Snowflake Schema

• Galaxy Schema
Star Schema
The star schema is the simplest type of Data Warehouse schema. It is
known as star schema as its structure resembles a star. In the Star
schema, the centre of the star can have one fact tables and numbers
of associated dimension tables.

Diagram: Star Schema


Snowflake Schema

The snowflake schema architecture is a more complex variation of the star schema used in a
data warehouse, because the tables which describe the dimensions are normalized.
Snowflake schema consists of a fact table surrounded by multiple dimension tables which can
be connected to other dimension tables via many-to-one relationship.

Diagram: Snowflake Schema


Comparison of Star Schema vs. Snowflake Schema
Star Schema Snowflake Schema
Easy of maintenance / change Has redundant data and hence less easy to No redundancy, so snowflake schemas are easier to
maintain/change maintain and change

Easy to use Lower query complexity and easy to understand More complex queries and hence less easy to
understand
Query performance Less number of foreign keys and hence shorter query More foreign keys and hence longer query execution
execution time (faster) time (slower)

Type of Data warehouse Good for data marts with simple relationships (1:1 or Good to use for data warehouse core to simplify
1:many) complex relationships (many: many)

Joins Fewer Joins Higher number of Joins


Dimension table A star schema contains only single dimension table for A snowflake schema may have more than one
each dimension dimension table for each dimension

When to use When dimension table contains less number of rows, we When dimension table is relatively big in size,
can choose star schema snowflaking is better as it reduces space

Normalization / De-normalization Both Dimension and Fact Tables are in De-Normalized Dimension Tables are in Normalized form but Fact
form Table is in De-Normalized form.

Data model Top down approach Bottom up approach


Thank You

You might also like