SlideShare a Scribd company logo
1 of 5
Assignment # 3
Information System & Data Processing II
Submitted By
Abdul-rehman Aslam
Roll # (9998)
Submitted To
Madam: Nargis Fatima
NATIONAL UNIVERSITY OF MODERN LANGUAGES H-9
ISLAMABAD
Question :
Differenciate between the following
1. star schema and snow flake
2. snow flake and fact constellation schema
3. Star schema and fact constellation
1.Star schema and snow flake
Star Schema Snow Flake Schema
The star schema is the simplest
data warehouse scheme.
In star schema each of the
dimensions is represented in a
single table .It should not have any
hierarchies between dims.
It contains a fact table surrounded
by dimension tables. If the
dimensions are de-normalized, we
say it is a star schema design.
In star schema only one join
establishes the relationship
between the fact table and any one
of the dimension tables.
A star schema optimizes the
performance by keeping queries
simple and providing fast response
time. All the information about the
each level is stored in one row.
It is called a star schema because
the diagram resembles a star.
Snowflake schema is a more
complex data warehouse model
than a star schema.
In snow flake schema at least one
hierarchy should exists between
dimension tables.
It contains a fact table surrounded
by dimension tables. If a
dimension is normalized, we say it
is a snow flaked design.
In snow flake schema since there
is relationship between the
dimensions tables it has to do
many joins to fetch the data.
Snowflake schemas normalize
dimensions to eliminated
redundancy. The result is more
complex queries and reduced
query performance.
It is called a snowflake schema
because the diagram resembles a
snowflake.
2.Snow flake and fact constellation schema
Snowflake schema:
The snowflake schema is a variant of the star schema model, where some dimension
tables are normalized, thereby further splitting the data into additional tables. The
resulting schema graph forms a shape similar to a snowflake.
· The major difference between the snowflake and star schema models is that the
dimension tables of the snowflake model may be kept in normalized form to reduce
redundancies.
· Such a table is easy to maintain and saves storage space. However, this saving of
space is negligible in comparison to the typical magnitude of the fact table.
· Snowflake structure can reduce the effectiveness of browsing, since more joins will be
needed to execute a query.
· The system performance may be adversely impacted. Hence, although the snowflake
schema reduces redundancy, it is not as popular as the star schema in data warehouse
design.
Example
Here, the sales fact table is identical to that of the star schema 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.
Fact constellation: Sophisticated applications may require multiple fact
tables to share
dimension tables. This kind of schema can be viewed as a collection of stars, and
hence is called a galaxy schema or a fact constellation.
Fact constellation. This schema specifies two fact tables, sales and shipping.
The sales table definition is identical to that of the star schema (Figure 3.4).
The shipping table has five dimensions, or keys: item key, time key, shipper key, from
location, and to location, and two measures: dollars cost and units shipped. A fact
constellation schema allows dimension tables to be shared between fact tables. For
example, the dimensions tables for time, item, and location are shared between both
the sales and shipping fact tables.
The fact constellation schema is commonly used, since it can model multiple,
interrelated subjects. A data mart, on the other hand, is a department subset of the data
warehouse that focuses on selected subjects, and thus its scope is departmentwide.
For data marts, the star or snowflake schema are commonly used, since both are
geared toward modeling single subjects, although the star schema is more popular and
efficient.
A dimension table will not have parent table in star schema, whereas snow flake
schemas have one or more parent tables
Performance wise, star schema is good. But if memory utilization is a major concern,
then snow flake schema is better than star schema.
3.Star schema and fact constellation
Star schema:
The most common modeling paradigm is the star schema, in which the data warehouse
contains (1) a large central table (fact table) containing the bulk of data with no
redundancy, and (2) a set of smaller attunement tables (dimension tables), one for
each dimension.
It is the basic structure for a dimensional model. It has one fact table and a set of
smaller dimension tables arranged around the fact table. The fact data will not
change over time. The most useful fact tables are numeric and additive because data
warehouse applications almost never access a single record. They access hundreds,
thousands, millions of records at a time and aggre-gate
Fact constellation
Sophisticated applications may require multiple fact tables to share dimension tables.
This kind of schema can be viewed as a collection of stars. This kind of schema can be
viewed as a collection of stars, and hence is called as a galaxy schema or a fact
constellation.
Example for defining Star, Snowflake and Fact Constellation Schema
Just as we use relational query languages like SQL, a data miming query language can
be used to query a data-mining task DMQL, whi9ch contains language primitives for
defining data warehouse and data marts. Data warehouse and data marts can be
defined using two language primitives, one for cube definition and another for
dimension definition.
The cube definition has the following syntax:
Define cube <cube_name> [(dimensional list)]:<measure list>
The dimension definition has the following syntax:
Define dimension<dimension_name> as (<attribute or sub-dimension list>)

More Related Content

What's hot

Architecture of data mining system
Architecture of data mining systemArchitecture of data mining system
Architecture of data mining systemramya marichamy
 
Data mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataData mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataSalah Amean
 
Attribute oriented analysis
Attribute oriented analysisAttribute oriented analysis
Attribute oriented analysisHirra Sultan
 
Multidimensional schema
Multidimensional schemaMultidimensional schema
Multidimensional schemaChaand Chopra
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Databasepuja_dhar
 
Introduction to Data Visualization
Introduction to Data VisualizationIntroduction to Data Visualization
Introduction to Data VisualizationStephen Tracy
 
OLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSEOLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSEZalpa Rathod
 
Data Warehouse Basic Guide
Data Warehouse Basic GuideData Warehouse Basic Guide
Data Warehouse Basic Guidethomasmary607
 
Data visualization tools & techniques - 1
Data visualization tools & techniques - 1Data visualization tools & techniques - 1
Data visualization tools & techniques - 1Korivi Sravan Kumar
 
Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)Mustafa Sherazi
 
Presentation on data preparation with pandas
Presentation on data preparation with pandasPresentation on data preparation with pandas
Presentation on data preparation with pandasAkshitaKanther
 

What's hot (20)

Architecture of data mining system
Architecture of data mining systemArchitecture of data mining system
Architecture of data mining system
 
Data mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataData mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, data
 
Attribute oriented analysis
Attribute oriented analysisAttribute oriented analysis
Attribute oriented analysis
 
Multidimensional schema
Multidimensional schemaMultidimensional schema
Multidimensional schema
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
01 Data Mining: Concepts and Techniques, 2nd ed.
01 Data Mining: Concepts and Techniques, 2nd ed.01 Data Mining: Concepts and Techniques, 2nd ed.
01 Data Mining: Concepts and Techniques, 2nd ed.
 
Introduction to Data Visualization
Introduction to Data VisualizationIntroduction to Data Visualization
Introduction to Data Visualization
 
OLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSEOLAP & DATA WAREHOUSE
OLAP & DATA WAREHOUSE
 
joins in database
 joins in database joins in database
joins in database
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 
Data Warehouse Basic Guide
Data Warehouse Basic GuideData Warehouse Basic Guide
Data Warehouse Basic Guide
 
Data visualization tools & techniques - 1
Data visualization tools & techniques - 1Data visualization tools & techniques - 1
Data visualization tools & techniques - 1
 
Data mining tasks
Data mining tasksData mining tasks
Data mining tasks
 
Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)Clustering in data Mining (Data Mining)
Clustering in data Mining (Data Mining)
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
Presentation on data preparation with pandas
Presentation on data preparation with pandasPresentation on data preparation with pandas
Presentation on data preparation with pandas
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 

Similar to Star ,Snow and Fact-Constullation Schemas??

Difference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellationDifference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellationAsim Saif
 
dataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdfdataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdfAnilGupta681764
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data modelmoni sindhu
 
Dimensional data model
Dimensional data modelDimensional data model
Dimensional data modelVnktp1
 
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCESALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCEcscpconf
 
no sql presentation
no sql presentationno sql presentation
no sql presentationchandanm2
 
A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...
A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...
A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...BRNSSPublicationHubI
 
Intro to Data warehousing Lecture 04
Intro to Data warehousing   Lecture 04Intro to Data warehousing   Lecture 04
Intro to Data warehousing Lecture 04AnwarrChaudary
 
Data ware house design
Data ware house designData ware house design
Data ware house designSayed Ahmed
 
Data ware house design
Data ware house designData ware house design
Data ware house designSayed Ahmed
 
Sql server lesson5
Sql server lesson5Sql server lesson5
Sql server lesson5Ala Qunaibi
 

Similar to Star ,Snow and Fact-Constullation Schemas?? (20)

Difference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellationDifference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellation
 
Data Warehouse Designing: Dimensional Modelling and E-R Modelling
Data Warehouse Designing: Dimensional Modelling and E-R ModellingData Warehouse Designing: Dimensional Modelling and E-R Modelling
Data Warehouse Designing: Dimensional Modelling and E-R Modelling
 
DW Lec 4.ppt
DW Lec 4.pptDW Lec 4.ppt
DW Lec 4.ppt
 
dataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdfdataminingpres-150821063129-lva1-app6891 (3).pdf
dataminingpres-150821063129-lva1-app6891 (3).pdf
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
 
Data cube
Data cubeData cube
Data cube
 
Dimensional data model
Dimensional data modelDimensional data model
Dimensional data model
 
MULTIMEDIA MODELING
MULTIMEDIA MODELINGMULTIMEDIA MODELING
MULTIMEDIA MODELING
 
Dw concepts
Dw conceptsDw concepts
Dw concepts
 
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCESALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
 
Data warehouse logical design
Data warehouse logical designData warehouse logical design
Data warehouse logical design
 
Database aggregation using metadata
Database aggregation using metadataDatabase aggregation using metadata
Database aggregation using metadata
 
Data Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptxData Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptx
 
no sql presentation
no sql presentationno sql presentation
no sql presentation
 
A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...
A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...
A Study on Mapping Semi-Structured Data to a Structured Data for Inverted Ind...
 
Intro to Data warehousing Lecture 04
Intro to Data warehousing   Lecture 04Intro to Data warehousing   Lecture 04
Intro to Data warehousing Lecture 04
 
Cs1011 dw-dm-1
Cs1011 dw-dm-1Cs1011 dw-dm-1
Cs1011 dw-dm-1
 
Data ware house design
Data ware house designData ware house design
Data ware house design
 
Data ware house design
Data ware house designData ware house design
Data ware house design
 
Sql server lesson5
Sql server lesson5Sql server lesson5
Sql server lesson5
 

More from Abdul Aslam

Challenges of cloud final
Challenges of cloud finalChallenges of cloud final
Challenges of cloud finalAbdul Aslam
 
Job analysis of a reporter
Job analysis of a reporterJob analysis of a reporter
Job analysis of a reporterAbdul Aslam
 
Project Progress Report
Project Progress ReportProject Progress Report
Project Progress ReportAbdul Aslam
 
Components of a Data-Warehouse
Components of a Data-WarehouseComponents of a Data-Warehouse
Components of a Data-WarehouseAbdul Aslam
 
Difference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional ModelingDifference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional ModelingAbdul Aslam
 
Transaction Processing System
Transaction Processing SystemTransaction Processing System
Transaction Processing SystemAbdul Aslam
 
Final Year Project (ISP),Project Demo
Final Year Project (ISP),Project DemoFinal Year Project (ISP),Project Demo
Final Year Project (ISP),Project DemoAbdul Aslam
 
Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Abdul Aslam
 
Software Testing Tool Report
Software Testing Tool ReportSoftware Testing Tool Report
Software Testing Tool ReportAbdul Aslam
 
Cloud Computing
 Cloud Computing Cloud Computing
Cloud ComputingAbdul Aslam
 
Work BreakDown Structure
Work BreakDown StructureWork BreakDown Structure
Work BreakDown StructureAbdul Aslam
 
Erd For Gift Shop
Erd For Gift ShopErd For Gift Shop
Erd For Gift ShopAbdul Aslam
 

More from Abdul Aslam (13)

Challenges of cloud final
Challenges of cloud finalChallenges of cloud final
Challenges of cloud final
 
Job analysis of a reporter
Job analysis of a reporterJob analysis of a reporter
Job analysis of a reporter
 
Project Progress Report
Project Progress ReportProject Progress Report
Project Progress Report
 
Components of a Data-Warehouse
Components of a Data-WarehouseComponents of a Data-Warehouse
Components of a Data-Warehouse
 
Difference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional ModelingDifference between ER-Modeling and Dimensional Modeling
Difference between ER-Modeling and Dimensional Modeling
 
Transaction Processing System
Transaction Processing SystemTransaction Processing System
Transaction Processing System
 
Final Year Project (ISP),Project Demo
Final Year Project (ISP),Project DemoFinal Year Project (ISP),Project Demo
Final Year Project (ISP),Project Demo
 
Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??
 
Software Testing Tool Report
Software Testing Tool ReportSoftware Testing Tool Report
Software Testing Tool Report
 
Spm report
Spm reportSpm report
Spm report
 
Cloud Computing
 Cloud Computing Cloud Computing
Cloud Computing
 
Work BreakDown Structure
Work BreakDown StructureWork BreakDown Structure
Work BreakDown Structure
 
Erd For Gift Shop
Erd For Gift ShopErd For Gift Shop
Erd For Gift Shop
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 

Star ,Snow and Fact-Constullation Schemas??

  • 1. Assignment # 3 Information System & Data Processing II Submitted By Abdul-rehman Aslam Roll # (9998) Submitted To Madam: Nargis Fatima NATIONAL UNIVERSITY OF MODERN LANGUAGES H-9 ISLAMABAD
  • 2. Question : Differenciate between the following 1. star schema and snow flake 2. snow flake and fact constellation schema 3. Star schema and fact constellation 1.Star schema and snow flake Star Schema Snow Flake Schema The star schema is the simplest data warehouse scheme. In star schema each of the dimensions is represented in a single table .It should not have any hierarchies between dims. It contains a fact table surrounded by dimension tables. If the dimensions are de-normalized, we say it is a star schema design. In star schema only one join establishes the relationship between the fact table and any one of the dimension tables. A star schema optimizes the performance by keeping queries simple and providing fast response time. All the information about the each level is stored in one row. It is called a star schema because the diagram resembles a star. Snowflake schema is a more complex data warehouse model than a star schema. In snow flake schema at least one hierarchy should exists between dimension tables. It contains a fact table surrounded by dimension tables. If a dimension is normalized, we say it is a snow flaked design. In snow flake schema since there is relationship between the dimensions tables it has to do many joins to fetch the data. Snowflake schemas normalize dimensions to eliminated redundancy. The result is more complex queries and reduced query performance. It is called a snowflake schema because the diagram resembles a snowflake.
  • 3. 2.Snow flake and fact constellation schema Snowflake schema: The snowflake schema is a variant of the star schema model, where some dimension tables are normalized, thereby further splitting the data into additional tables. The resulting schema graph forms a shape similar to a snowflake. · The major difference between the snowflake and star schema models is that the dimension tables of the snowflake model may be kept in normalized form to reduce redundancies. · Such a table is easy to maintain and saves storage space. However, this saving of space is negligible in comparison to the typical magnitude of the fact table. · Snowflake structure can reduce the effectiveness of browsing, since more joins will be needed to execute a query. · The system performance may be adversely impacted. Hence, although the snowflake schema reduces redundancy, it is not as popular as the star schema in data warehouse design. Example Here, the sales fact table is identical to that of the star schema 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. Fact constellation: Sophisticated applications may require multiple fact tables to share dimension tables. This kind of schema can be viewed as a collection of stars, and hence is called a galaxy schema or a fact constellation. Fact constellation. This schema specifies two fact tables, sales and shipping. The sales table definition is identical to that of the star schema (Figure 3.4). The shipping table has five dimensions, or keys: item key, time key, shipper key, from location, and to location, and two measures: dollars cost and units shipped. A fact constellation schema allows dimension tables to be shared between fact tables. For
  • 4. example, the dimensions tables for time, item, and location are shared between both the sales and shipping fact tables. The fact constellation schema is commonly used, since it can model multiple, interrelated subjects. A data mart, on the other hand, is a department subset of the data warehouse that focuses on selected subjects, and thus its scope is departmentwide. For data marts, the star or snowflake schema are commonly used, since both are geared toward modeling single subjects, although the star schema is more popular and efficient. A dimension table will not have parent table in star schema, whereas snow flake schemas have one or more parent tables Performance wise, star schema is good. But if memory utilization is a major concern, then snow flake schema is better than star schema. 3.Star schema and fact constellation Star schema: The most common modeling paradigm is the star schema, in which the data warehouse contains (1) a large central table (fact table) containing the bulk of data with no redundancy, and (2) a set of smaller attunement tables (dimension tables), one for each dimension. It is the basic structure for a dimensional model. It has one fact table and a set of smaller dimension tables arranged around the fact table. The fact data will not change over time. The most useful fact tables are numeric and additive because data warehouse applications almost never access a single record. They access hundreds, thousands, millions of records at a time and aggre-gate
  • 5. Fact constellation Sophisticated applications may require multiple fact tables to share dimension tables. This kind of schema can be viewed as a collection of stars. This kind of schema can be viewed as a collection of stars, and hence is called as a galaxy schema or a fact constellation. Example for defining Star, Snowflake and Fact Constellation Schema Just as we use relational query languages like SQL, a data miming query language can be used to query a data-mining task DMQL, whi9ch contains language primitives for defining data warehouse and data marts. Data warehouse and data marts can be defined using two language primitives, one for cube definition and another for dimension definition. The cube definition has the following syntax: Define cube <cube_name> [(dimensional list)]:<measure list> The dimension definition has the following syntax: Define dimension<dimension_name> as (<attribute or sub-dimension list>)