Schemas for Multidimensional Data Models
Schemas for Multidimensional Data Models
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 1 / 18
Schemas for Multidimensional Data Models
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 2 / 18
Star schema: Components
The Components of a Star Schema include:
1 Fact Table:
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 4 / 18
Star Schema: Diagram Illustration
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 5 / 18
The Snowflake Schema
The Snowflake Schema is an extension of the Star Schema used in data
warehousing. It is designed to normalize the data structure, reducing data
redundancy and improving storage efficiency. Its components include
1 Fact Table:
▶ Similar to the Star Schema, the central table holds quantitative metrics
(facts) and foreign keys that reference dimension tables.
2 Dimension Tables:
▶ In the Snowflake Schema, dimension tables are normalized into
multiple related tables.
▶ These related tables are organized in a hierarchical structure, breaking
down attributes into separate tables to eliminate redundancy.
A snowflake schema for AllElectronics sales is given in Figure 2 below(next
slide). Here, the sales fact table is identical to that of the star schema in
Figure 1. The main difference between the two schemas is in the definition
of dimension tables. The single dimension table for item in the star
schema is normalized in the snowflake schema, resulting in new item and
supplier tables.
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 6 / 18
Snowflake schema of a sales data warehouse: A Diagram
Illustration
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 7 / 18
Comparison: Star Schema vs. Snowflake Schema
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 8 / 18
A Fact constellation Schema
The Fact Constellation Schema (also known as a Galaxy Schema) is a
more advanced data warehouse schema design that consists of multiple
fact tables sharing common dimension tables. It is suitable for complex
applications where data is analyzed across different business processes or
multiple fact tables are required. Its components include the following:
1 Multiple Fact Tables.
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 10 / 18
Assignments
2 Using the use case examples (The two shared handouts on data
warehousing, in groups of 3, develop warehouse models based on the
above discussed concepts (Schemas for multidimensional Data
models) a group can pick from any of the following scenarios
(Provided on the next slides) ).
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 11 / 18
Assignment Scenario 1: Retail and E-Commerce
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 12 / 18
Assignment Scenario 2: Healthcare
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 13 / 18
Assignment Scenario 3: Finance and Banking
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 14 / 18
Assignment Scenario 4: Telecommunication
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 15 / 18
Assignment Scenario 5: Manufacturing
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 16 / 18
Assignment Scenario 6: Energy and Utilities
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 17 / 18
Assignment Scenario 7: Transportation and Logistics
Stars, Snowflakes, and Fact Constellations Schemas for Multidimensional Data Models Dr Tombe. 26.Nov.24 18 / 18