SlideShare a Scribd company logo
Objectives
Understand how requirements definition determines
data design
Introduction of dimensional modeling /contrast with
E-R modeling
Basics of star schema
Contents of fact/dimension tables
Advantages of star schema for DW
Design decisions to be taken
Choosing the process:- deciding subjects
Choosing the grain
Identifying and confirming dimensions
Choosing the facts
Choosing the duration of the database
Dimensional modeling basics
Tips for combining data into
dimensional model
Provide best data access
Model should be query-centric
Model should be optimized for queries and analyses
Model should reveal the interactions between the
dimension and fact tables
There should be drilling down or rolling up along
dimension hierarchies
Entity-Relationship vs.
Dimensional Models
E-R DIAGRAM
One table per entity
Minimize data
redundancy
Optimize update
The Transaction
Processing Model
DIMENSIONAL MODEL
One fact table for data
organization
Maximize
understandability
Optimized for retrieval
The data warehousing
model
Query result
Dimension table
Contain information about a particular dimension.
Dimension table key
Table is wide
Textual attributes
Attributes not directly related
Not normalized
Drilling down, rolling up
Multiple hierarchies
Fewer number of records
Facts
Numeric measurements (values) that represent a
specific business aspect or activity
Stored in a fact table at the center of the star
scheme
Contains facts that are linked through their
dimensions
Can be computed or derived at run time
Updated periodically with data from operational
databases
Fact table
Contains primary information of the warehouse
Concatenated key
Data grain
Fully additive measures
Semi-additive measures(derived attributes)
Table deep, not wide
Sparse data
Degenerate dimensions(attributes which are neither
fact or a dimension)
Star schema for a retail chain
Time Dimension
Table
Time key
Year
Quarter
Month
Week
Date
Product
Dimension Table
Product key
Name
Brand
Category
Colour
Price
Customer
Dimension Table
Customer key
Name
Age
Income
Gender
Marital status
Store
Dimension
Table
Store key
Name
City
State
Op from year
Payment
Mode
Dimension
Table
Mode key
Payment mode
Sales Fact
Table
Time key
Product key
Customer key
Store key
Mode key
Actual sales
Forecast sales
Price
Discount
Star schema keys
Primary keys: should not be same as production
system
Surrogate keys: System generated sequence numbers
having no built-in meanings
Foreign keys: primary key of each dimension table
must be a foreign key in the fact table.
Updating the Dimension table
Dimension tables are non-volatile and mostly read-
only.
More rows are added to the Dimension tables over
time.
Changes to certain attributes of a row become
eminent at times.
There are many types of changes that affect the
dimension tables.
Type 1: Correction of errors
Usually relate to correction of errors in the source
systems.
E.g., spelling error in customer names; change of
names of customers;
There is no need to preserve the old values here.
The old value in the source system needs to be
discarded.
The changes made need not be preserved or noted.
Type 2: Preservation of history
True changes in the source systems.
E.g., change of marital status; change of address
There is a need to preserve history
This type of changes partition the warehouse
Every change for the same attribute must be
preserved.
Applying these changes:
Add a new dimension table row with new value of the
changed attribute
No changes are made to the existing row.
New rows are inserted with a new surrogate key.
Type 3: Tentative soft revision
Tentative changes in the source system
E.g., if an employee will get posted for a short period
to a different location
Need to keep track of history with old and new values
Used to compare performances across the transition
Applying these changes
An “old” field is added in the dimension table
Push existing value of attribute from “current” to “old”
Update the “current” field with the new value with
effective date
Large dimensions
Very deep(large number of rows)
Very wide(large number of attributes)
Have multiple hierarchies
Rapidly changing dimensions
Junk dimensions
Snowflake schema
A variation of the star schema, in which all or
some of the dimension tables may be normalized.
Eliminates redundancy
Generally used when a dimension table is wide.
Saves space
Complex querying is required.
Advantages and disadvantages
Advantages
Small savings in storage space
Normalized structures are easier to update and
maintain
Disadvantages
Schema is less intuitive
Browsing becomes difficult
Degraded query performance because of additional
joins

More Related Content

What's hot

Advanced Dimensional Modelling
Advanced Dimensional ModellingAdvanced Dimensional Modelling
Advanced Dimensional Modelling
Vincent Rainardi
 
Star schema
Star schemaStar schema
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
Abdul Aslam
 
Dimensional modeling primer
Dimensional modeling primerDimensional modeling primer
Dimensional modeling primer
Terry Bunio
 
Designing the business process dimensional model
Designing the business process dimensional modelDesigning the business process dimensional model
Designing the business process dimensional model
Gersiton Pila Challco
 
Dimensional Modeling
Dimensional ModelingDimensional Modeling
Dimensional Modeling
aksrauf
 
Data Warehouse Design & Dimensional Modeling
Data Warehouse Design & Dimensional ModelingData Warehouse Design & Dimensional Modeling
Data Warehouse Design & Dimensional Modeling
Code Mastery
 
Dimensional Modeling
Dimensional ModelingDimensional Modeling
Dimensional Modeling
Sunita Sahu
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data model
jagdish_93
 
04 Dimensional Analysis - v6
04 Dimensional Analysis - v604 Dimensional Analysis - v6
04 Dimensional Analysis - v6
Prithwis Mukerjee
 
2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli
truongthuthuy47
 
Slowly changing dimension
Slowly changing dimension Slowly changing dimension
Slowly changing dimension
Sunita Sahu
 
Business Intelligence: A Review
Business Intelligence: A ReviewBusiness Intelligence: A Review
Business Intelligence: A Review
Fortune Institute of International Business
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
vivekjv
 
Steps To Build A Datawarehouse
Steps To Build A DatawarehouseSteps To Build A Datawarehouse
Steps To Build A Datawarehouse
Hendra Saputra
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
moni sindhu
 
Star ,Snow and Fact-Constullation Schemas??
Star ,Snow and  Fact-Constullation Schemas??Star ,Snow and  Fact-Constullation Schemas??
Star ,Snow and Fact-Constullation Schemas??
Abdul Aslam
 
Fact table design for data ware house
Fact table design for data ware houseFact table design for data ware house
Fact table design for data ware house
Sayed Ahmed
 
Star schema PPT
Star schema PPTStar schema PPT
Star schema PPT
Swati Kulkarni Jaipurkar
 
E-R vs Starschema
E-R vs StarschemaE-R vs Starschema
E-R vs Starschema
guest862640
 

What's hot (20)

Advanced Dimensional Modelling
Advanced Dimensional ModellingAdvanced Dimensional Modelling
Advanced Dimensional Modelling
 
Star schema
Star schemaStar schema
Star schema
 
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
 
Dimensional modeling primer
Dimensional modeling primerDimensional modeling primer
Dimensional modeling primer
 
Designing the business process dimensional model
Designing the business process dimensional modelDesigning the business process dimensional model
Designing the business process dimensional model
 
Dimensional Modeling
Dimensional ModelingDimensional Modeling
Dimensional Modeling
 
Data Warehouse Design & Dimensional Modeling
Data Warehouse Design & Dimensional ModelingData Warehouse Design & Dimensional Modeling
Data Warehouse Design & Dimensional Modeling
 
Dimensional Modeling
Dimensional ModelingDimensional Modeling
Dimensional Modeling
 
Multidimentional data model
Multidimentional data modelMultidimentional data model
Multidimentional data model
 
04 Dimensional Analysis - v6
04 Dimensional Analysis - v604 Dimensional Analysis - v6
04 Dimensional Analysis - v6
 
2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli
 
Slowly changing dimension
Slowly changing dimension Slowly changing dimension
Slowly changing dimension
 
Business Intelligence: A Review
Business Intelligence: A ReviewBusiness Intelligence: A Review
Business Intelligence: A Review
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
 
Steps To Build A Datawarehouse
Steps To Build A DatawarehouseSteps To Build A Datawarehouse
Steps To Build A Datawarehouse
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
 
Star ,Snow and Fact-Constullation Schemas??
Star ,Snow and  Fact-Constullation Schemas??Star ,Snow and  Fact-Constullation Schemas??
Star ,Snow and Fact-Constullation Schemas??
 
Fact table design for data ware house
Fact table design for data ware houseFact table design for data ware house
Fact table design for data ware house
 
Star schema PPT
Star schema PPTStar schema PPT
Star schema PPT
 
E-R vs Starschema
E-R vs StarschemaE-R vs Starschema
E-R vs Starschema
 

Similar to Dimensional Modeling

The Data Warehouse Lifecycle
The Data Warehouse LifecycleThe Data Warehouse Lifecycle
The Data Warehouse Lifecycle
bartlowe
 
Modelado Dimensional 4 Etapas
Modelado Dimensional 4 EtapasModelado Dimensional 4 Etapas
Modelado Dimensional 4 Etapas
Roberto Espinosa
 
Dimensional Modelling
Dimensional ModellingDimensional Modelling
Dimensional Modelling
Prithwis Mukerjee
 
Data Warehouse Models and Operators.ppt
Data  Warehouse Models and Operators.pptData  Warehouse Models and Operators.ppt
Data Warehouse Models and Operators.ppt
gosavi609
 
LECTURE 7.ppt.pdf
LECTURE 7.ppt.pdfLECTURE 7.ppt.pdf
LECTURE 7.ppt.pdf
cikajen791
 
Cs437 lecture 7-8
Cs437 lecture 7-8Cs437 lecture 7-8
Cs437 lecture 7-8
Aneeb_Khawar
 
05. Physical Data Specification Template
05. Physical Data Specification Template05. Physical Data Specification Template
05. Physical Data Specification Template
Alan D. Duncan
 
Modelado Dimensional 4 etapas.ppt
Modelado Dimensional 4 etapas.pptModelado Dimensional 4 etapas.ppt
Modelado Dimensional 4 etapas.ppt
ssuser39e08e
 
Intro to Data warehousing lecture 13
Intro to Data warehousing   lecture 13Intro to Data warehousing   lecture 13
Intro to Data warehousing lecture 13
AnwarrChaudary
 
Data Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptxData Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptx
Dr. Jasmine Beulah Gnanadurai
 
Analytics 101
Analytics 101Analytics 101
Analytics 101
Sujeevan Nagarajah
 
Dimensional Modeling Concepts_Nishant.ppt
Dimensional Modeling Concepts_Nishant.pptDimensional Modeling Concepts_Nishant.ppt
Dimensional Modeling Concepts_Nishant.ppt
nishant523869
 
Export Data Model | SQL Database Modeler
Export Data Model | SQL Database ModelerExport Data Model | SQL Database Modeler
Export Data Model | SQL Database Modeler
SQL DBM
 
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
Polish SQL Server User Group
 
Designing high performance datawarehouse
Designing high performance datawarehouseDesigning high performance datawarehouse
Designing high performance datawarehouse
Uday Kothari
 
Data Quality: A Raising Data Warehousing Concern
Data Quality: A Raising Data Warehousing ConcernData Quality: A Raising Data Warehousing Concern
Data Quality: A Raising Data Warehousing Concern
Amin Chowdhury
 
Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!
Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!
Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!
Caserta
 
Harnessing the value of big data analytics
Harnessing the value of big data analyticsHarnessing the value of big data analytics
Harnessing the value of big data analytics
Sowmia Sathyan
 
(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf
MobeenMasoudi
 
Data ware dimension design
Data ware   dimension designData ware   dimension design
Data ware dimension design
Sayed Ahmed
 

Similar to Dimensional Modeling (20)

The Data Warehouse Lifecycle
The Data Warehouse LifecycleThe Data Warehouse Lifecycle
The Data Warehouse Lifecycle
 
Modelado Dimensional 4 Etapas
Modelado Dimensional 4 EtapasModelado Dimensional 4 Etapas
Modelado Dimensional 4 Etapas
 
Dimensional Modelling
Dimensional ModellingDimensional Modelling
Dimensional Modelling
 
Data Warehouse Models and Operators.ppt
Data  Warehouse Models and Operators.pptData  Warehouse Models and Operators.ppt
Data Warehouse Models and Operators.ppt
 
LECTURE 7.ppt.pdf
LECTURE 7.ppt.pdfLECTURE 7.ppt.pdf
LECTURE 7.ppt.pdf
 
Cs437 lecture 7-8
Cs437 lecture 7-8Cs437 lecture 7-8
Cs437 lecture 7-8
 
05. Physical Data Specification Template
05. Physical Data Specification Template05. Physical Data Specification Template
05. Physical Data Specification Template
 
Modelado Dimensional 4 etapas.ppt
Modelado Dimensional 4 etapas.pptModelado Dimensional 4 etapas.ppt
Modelado Dimensional 4 etapas.ppt
 
Intro to Data warehousing lecture 13
Intro to Data warehousing   lecture 13Intro to Data warehousing   lecture 13
Intro to Data warehousing lecture 13
 
Data Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptxData Warehouse_Architecture.pptx
Data Warehouse_Architecture.pptx
 
Analytics 101
Analytics 101Analytics 101
Analytics 101
 
Dimensional Modeling Concepts_Nishant.ppt
Dimensional Modeling Concepts_Nishant.pptDimensional Modeling Concepts_Nishant.ppt
Dimensional Modeling Concepts_Nishant.ppt
 
Export Data Model | SQL Database Modeler
Export Data Model | SQL Database ModelerExport Data Model | SQL Database Modeler
Export Data Model | SQL Database Modeler
 
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
SQL DAY 2012 | DEV Track | Session 8 - Getting Dimension with Data by C.Tecta...
 
Designing high performance datawarehouse
Designing high performance datawarehouseDesigning high performance datawarehouse
Designing high performance datawarehouse
 
Data Quality: A Raising Data Warehousing Concern
Data Quality: A Raising Data Warehousing ConcernData Quality: A Raising Data Warehousing Concern
Data Quality: A Raising Data Warehousing Concern
 
Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!
Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!
Big Data Warehousing Meetup: Dimensional Modeling Still Matters!!!
 
Harnessing the value of big data analytics
Harnessing the value of big data analyticsHarnessing the value of big data analytics
Harnessing the value of big data analytics
 
(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf(Lecture 4)Slowly Changing Dimensions.pdf
(Lecture 4)Slowly Changing Dimensions.pdf
 
Data ware dimension design
Data ware   dimension designData ware   dimension design
Data ware dimension design
 

Recently uploaded

Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 

Dimensional Modeling

  • 1.
  • 2. Objectives Understand how requirements definition determines data design Introduction of dimensional modeling /contrast with E-R modeling Basics of star schema Contents of fact/dimension tables Advantages of star schema for DW
  • 3. Design decisions to be taken Choosing the process:- deciding subjects Choosing the grain Identifying and confirming dimensions Choosing the facts Choosing the duration of the database
  • 5.
  • 6. Tips for combining data into dimensional model Provide best data access Model should be query-centric Model should be optimized for queries and analyses Model should reveal the interactions between the dimension and fact tables There should be drilling down or rolling up along dimension hierarchies
  • 7. Entity-Relationship vs. Dimensional Models E-R DIAGRAM One table per entity Minimize data redundancy Optimize update The Transaction Processing Model DIMENSIONAL MODEL One fact table for data organization Maximize understandability Optimized for retrieval The data warehousing model
  • 9. Dimension table Contain information about a particular dimension. Dimension table key Table is wide Textual attributes Attributes not directly related Not normalized Drilling down, rolling up Multiple hierarchies Fewer number of records
  • 10. Facts Numeric measurements (values) that represent a specific business aspect or activity Stored in a fact table at the center of the star scheme Contains facts that are linked through their dimensions Can be computed or derived at run time Updated periodically with data from operational databases
  • 11. Fact table Contains primary information of the warehouse Concatenated key Data grain Fully additive measures Semi-additive measures(derived attributes) Table deep, not wide Sparse data Degenerate dimensions(attributes which are neither fact or a dimension)
  • 12. Star schema for a retail chain Time Dimension Table Time key Year Quarter Month Week Date Product Dimension Table Product key Name Brand Category Colour Price Customer Dimension Table Customer key Name Age Income Gender Marital status Store Dimension Table Store key Name City State Op from year Payment Mode Dimension Table Mode key Payment mode Sales Fact Table Time key Product key Customer key Store key Mode key Actual sales Forecast sales Price Discount
  • 13. Star schema keys Primary keys: should not be same as production system Surrogate keys: System generated sequence numbers having no built-in meanings Foreign keys: primary key of each dimension table must be a foreign key in the fact table.
  • 14. Updating the Dimension table Dimension tables are non-volatile and mostly read- only. More rows are added to the Dimension tables over time. Changes to certain attributes of a row become eminent at times. There are many types of changes that affect the dimension tables.
  • 15. Type 1: Correction of errors Usually relate to correction of errors in the source systems. E.g., spelling error in customer names; change of names of customers; There is no need to preserve the old values here. The old value in the source system needs to be discarded. The changes made need not be preserved or noted.
  • 16. Type 2: Preservation of history True changes in the source systems. E.g., change of marital status; change of address There is a need to preserve history This type of changes partition the warehouse Every change for the same attribute must be preserved. Applying these changes: Add a new dimension table row with new value of the changed attribute No changes are made to the existing row. New rows are inserted with a new surrogate key.
  • 17. Type 3: Tentative soft revision Tentative changes in the source system E.g., if an employee will get posted for a short period to a different location Need to keep track of history with old and new values Used to compare performances across the transition Applying these changes An “old” field is added in the dimension table Push existing value of attribute from “current” to “old” Update the “current” field with the new value with effective date
  • 18. Large dimensions Very deep(large number of rows) Very wide(large number of attributes) Have multiple hierarchies Rapidly changing dimensions Junk dimensions
  • 19. Snowflake schema A variation of the star schema, in which all or some of the dimension tables may be normalized. Eliminates redundancy Generally used when a dimension table is wide. Saves space Complex querying is required.
  • 20.
  • 21.
  • 22. Advantages and disadvantages Advantages Small savings in storage space Normalized structures are easier to update and maintain Disadvantages Schema is less intuitive Browsing becomes difficult Degraded query performance because of additional joins