100%(1)100% fanden dieses Dokument nützlich (1 Abstimmung)
1K Ansichten9 Seiten
The document compares and contrasts snowflake and star schemas used in data warehousing. It defines that a snowflake schema has a centralized fact table with dimensions normalized into multiple related tables, while a star schema is denormalized with dimensions in separate tables directly linked to the fact table. The document lists advantages of each like snowflake schemas improving performance through smaller joined tables and star schemas having simpler queries due to reduced joins. It also provides diagrams illustrating the structures of snowflake and star schemas.
The document compares and contrasts snowflake and star schemas used in data warehousing. It defines that a snowflake schema has a centralized fact table with dimensions normalized into multiple related tables, while a star schema is denormalized with dimensions in separate tables directly linked to the fact table. The document lists advantages of each like snowflake schemas improving performance through smaller joined tables and star schemas having simpler queries due to reduced joins. It also provides diagrams illustrating the structures of snowflake and star schemas.
Copyright:
Attribution Non-Commercial (BY-NC)
Verfügbare Formate
Als PPT, PDF, TXT herunterladen oder online auf Scribd lesen
The document compares and contrasts snowflake and star schemas used in data warehousing. It defines that a snowflake schema has a centralized fact table with dimensions normalized into multiple related tables, while a star schema is denormalized with dimensions in separate tables directly linked to the fact table. The document lists advantages of each like snowflake schemas improving performance through smaller joined tables and star schemas having simpler queries due to reduced joins. It also provides diagrams illustrating the structures of snowflake and star schemas.
Copyright:
Attribution Non-Commercial (BY-NC)
Verfügbare Formate
Als PPT, PDF, TXT herunterladen oder online auf Scribd lesen
Neha Topno (V1113) Abhinav Shukla (V1061) Praveen Singh Bijay A snowflake schema is a logical arrangement of tables in a multidimensional database used in data warehousing The snowflake schema is represented by centralized fact tables However, dimensions are normalized into multiple related tables The star schema is the simplest data warehouse schema It is a denormalised model. No need to use complicated joins A star schema can have any number of dimension tables Fact Table Dimension Table
•A dimension table is a table
•A fact table is a table in a in a star or snowflake schema star or snowflake schema that stores attributes that that stores facts that describe aspects of a measure the business, such dimension as sales, cost of goods, or •For example, a time table profit stores the various aspects of •Fact tables also contain time such as year, quarter, foreign keys to the month, and day. A foreign dimension tables. These key of a fact table references foreign keys relate each row the primary key in a of data in the fact table to its dimension table in a many-to- corresponding dimensions one relationship and levels Advantages Disadvantages
· In some cases may · Increases the number
improve performance of tables an end-user because smaller tables must work with, are joined, · Makes the queries · Is easier to maintain, much more difficult to create because more · Increases flexibility tables need to be joined Advantages Disadvantages
•Reduced Joins, Faster •Bigger table sizes
Query Operation because of large number of dimension tables •Writing queries becomes simpler as there •Denormalized form of a are no complex joins in snowflake schema the ERD •Too many rows in Fact •Work of end- user Table becomes easy because of less complexity Snowflake Schema · Fact Table and its contents: metric attributes and the foreign keys necessary to join to the dimension tables,
· Dimension Tables and their contents: reference attributes and metric attributes. The dimension tables are normalized,
· The lines that link the Dimension Tables to the Fact Table,
· The lines that link the Dimension Tables to more Dimension Tables. Starflake Schema · Fact Table and its contents: metric attributes and the foreign keys necessary to join to the dimension tables,
· Dimension Tables and their contents: reference attributes and metric attributes. The dimension tables are normalized,
· The lines that link the Dimension Tables to the Fact Table,