SlideShare a Scribd company logo
1 of 37
Download to read offline
Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Chapter 7
Multidimensional Data
Modeling (MDDM)
Learning Objectives Learning Outcomes
1. To assess the capabilities of OLTP and
OLAP systems
(a) Appreciate the differences
between OLTP and OLAP
systems
2. To understand Dimensional Modeling
(DM)
(b) Understanding of DM,
basics of data warehousing and
related terminology; also an
overview of what facts and
dimensions are
3. To learn data warehousing in further detail
through a case-study
(c) Understand how to convert
an OLTP schema into a
dimensional schema model
through various techniques of
data warehousing
Learning Objectives and Learning Outcomes
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Lecture time : 90 minutes approx.
Q/A : 15 minutes
Session Plan
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Agenda
• Database Concepts – Recap
• Introduction to On-line Analytical Processing (OLAP)
• Multidimensional Data Modeling (MDDM)
– To Answer Why ? Where ? When ? and How ?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Recap
• Databases and Tables
• Normalization and Keys
– ACID Properties
– Primary, Foreign and Surrogate Keys
– Cardinality
• Transactions
– On-Line Transaction Processing
– On-Line Analytical Processing
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Recap (contd.)
• Difference between OLTP and OLAP
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Comparison of OLTP and DSS
OLTP Capability Examples DSS Capability Examples
• Search & locate student(s)
• Print student scores
• Filter students above 90%
marks
• Update student Grade
• Group by Batch and
compute average score
• Find top 10 high
performance students
• Which courses have productivity
impact on-the-job?
• Which colleges need to be
rewarded for supplying students
with consistent high on-the-job
performance?
• What is the customer satisfaction
improvement due to extended
training?
• How project level profitability is
influenced by certification?
• How much training is needed on
future technologies for non-linear
growth in BI?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Still a little fuzzy about what OLAP can do?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Introduction to On-line Analytical Processing (OLAP)
Scenario:
Internal systems department at Infosys maintains all relevant data in a database.
Conceptual schema is as shown below.
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
OLAP Contd.
• CEO of the company wants the following information from the IS
department.
• Number of employees added in the role of the company during the last
quarter/6 months/1 year
Q1. How many table(s) is/are required ?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Q2. How many employees are currently in the projects ?
Q3. How many are on bench?
OLAP Contd.
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Q4. Which customer from a region has given maximum business during the
previous quarter on a domain under specific technology and who are the PMs
of the project and assets owned by them.
OLAP Contd.
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
SOLUTION?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
So if there were very few updates and more of data-retrieval queries
being made on your database, what do you think would be a better
schema to adopt?
OLTP or OLAP
Answer a Quick Question
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Introduction to Dimensional Modeling (DM)
• DM is a logical design technique used in Data Warehouses (DW). It is
quite directly related to OLAP systems
• DM is a design technique for databases intended to support end-user queries
in a DW
• It is oriented around understandability, as opposed to database
administration
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
However, before we actually jump into MDDM…
let’s first understand the language of
Dimensional Modeling
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
MDDM Terminology
• Grain
• Fact
• Dimension
• Cube
• Star
• Snowflake
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Of hierarchies and levels…
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
What Is a Grain?
• Identifying the grain also means deciding the level of detail that will be
made available in the dimensional model
• Granularity is defined as the detailed level of information stored in a table
• The more the detail, the lower is the level of granularity
• The lesser the detail, higher is the level of granularity
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
What can be measured, can be controlled…
…and do you know how such measurements are stored in a data
warehouse?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Facts and Fact Tables
• Consists of at least two or more foreign keys
• Generally has huge numbers of records
• Useful facts tend to be numeric and additive
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Fact Types
Facts
Additive
Non
Additive
Semi
Additive
Factless Fact
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
And what about descriptive data?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
What Are Dimensions/Dimension Tables?
• The dimensional tables contain attributes (descriptive) which are typically
static values containing textual data or discrete numbers which behave as
text values.
• Main functionalities :
• Query filteringconstraining
• Query result set labeling
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Types of Dimensions
Dimension
TypeSlowly
Changing
Dimension
Rapidly
Changing
Dimension
Degenerate
Dimension
Junk
(garbage)
Dimension
Role-playing
Dimension
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Understanding Dimension – Cube
• An extension to the two-dimensional Table.
• For example in the previous scenario CEO wants a report on revenue
generated by different services across regions during each quarter
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Understanding Dimension – Cube (contd.)
Dimension Hierarchy
Grain
Fact
Testing
Consulting
Production Support
N .America
Europe
Asia Pacific
Q1 Q2 Q3 Q4
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Can a data warehouse schema take different forms with respect to
normalization?
Answer a Quick Question
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Star Schema
The basic star schema contains four components.
These are:
Fact table, Dimension tables, Attributes and Dimension hierarchies
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Snow Flake Schema
• Normalization and expansion of the dimension tables in a star schema result
in the implementation of a snowflake design.
• A dimension table is said to be snow flaked when the low-cardinality
attributes in the dimension have been removed to separate normalized
tables and these normalized tables are then joined back into the original
dimension table.
Snow Flaking Example
• Consider the Normalized form of Region dimension
Region
RegionID
Country Code
State Code
City Code
Country
Country Code
Country Name
State Code
City Code State
State code
State Name
City Code
City
City Code
City Name
ZIP
Decreases performance because more tables will need to be joined to satisfy queries
Armed with these weapons that we call ‘Concepts’, let’s
step into the battlefield!
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Case Study
Conversion of a ER Model to a Dimensional Model
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
ORDER
order_num (PK)
customer_ID (FK)
store_ID (FK)
clerk_ID (FK)
date
STORE
store_ID (PK)
store_name
floor_type
address
district
CLERK
clerk_id (PK)
clerk_name
clerk_grade
PRODUCT
SKU (PK)
Description
category
brand
CUSTOMER
customer_ID (PK)
customer_name
credit_profile
purchase_profile
address
PROMOTION
promotion_NUM (PK)
promotion_name
ad_type
price_type
ORDER-LINE
order_num (PK) (FK)
SKU (PK) (FK)
promotion_key (FK)
dollars_cost
dollars_sold
units_sold
ER Diagram
TIME
time_key (PK)
SQL_date
day_of_week
month
STORE
store_key (PK)
store_ID
store_name
floor_type
address
district
CLERK
clerk_key (PK)
clerk_id
clerk_name
clerk_grade
PRODUCT
product_key (PK)
SKU
category
description
brand
CUSTOMER
customer_key (PK)
customer_name
credit_profile
purchase_profile
address
PROMOTION
promotion_key (PK)
promotion_name
ad_type
price_type
FACT
time_key (FK)
customer_key (FK)
store_key (FK)
clerk_key (FK)
product_key (FK)
promotion_key
(FK)
dollars_cost
dollars_sold
units_sold
DIMENSONAL
MODEL
Summary
• Basics of Database
• OLTP
• MDDM
• Cube
• Star Schema
• Snowflake schema
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
Food for Thought!
1. Who according to you would be the user of OLAP?
2. Who would need the Multidimensional perspective of data?
“Fundamentals of Business Analytics”
RN Prasad and Seema Acharya
Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.

More Related Content

What's hot

Teradata Customer Services
Teradata Customer ServicesTeradata Customer Services
Teradata Customer ServicesTeradata
 
Gaining altitude and cruising smoothly to hr cloud
Gaining altitude and cruising smoothly to hr cloudGaining altitude and cruising smoothly to hr cloud
Gaining altitude and cruising smoothly to hr cloudNGA Human Resources
 
Data Warehousing Datamining Concepts
Data Warehousing Datamining ConceptsData Warehousing Datamining Concepts
Data Warehousing Datamining Conceptsraulmisir
 
Business intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionBusiness intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionHeadChannel
 
Analyzing the Digital Workplace in Europe
Analyzing the Digital Workplace in EuropeAnalyzing the Digital Workplace in Europe
Analyzing the Digital Workplace in EuropeNGA Human Resources
 
SOAIS Corporate Presentation_SAP_Ver1 -Pdf
SOAIS Corporate Presentation_SAP_Ver1 -PdfSOAIS Corporate Presentation_SAP_Ver1 -Pdf
SOAIS Corporate Presentation_SAP_Ver1 -PdfAKASH MISHRA
 
Key Note - Agile China - Kanban An Alternative Path to Agility
Key Note - Agile China - Kanban An Alternative Path to AgilityKey Note - Agile China - Kanban An Alternative Path to Agility
Key Note - Agile China - Kanban An Alternative Path to AgilityDavid Anderson
 
HCM Technology is Reshaping How We Work. What Trends Should You Respond To?
HCM Technology is Reshaping How We Work. What Trends Should You Respond To?HCM Technology is Reshaping How We Work. What Trends Should You Respond To?
HCM Technology is Reshaping How We Work. What Trends Should You Respond To?Training Industry Conference & Expo
 
70-461 Querying Microsoft SQL Server 2012
70-461 Querying Microsoft SQL Server 201270-461 Querying Microsoft SQL Server 2012
70-461 Querying Microsoft SQL Server 2012siphocha
 
Gofusion India
Gofusion  India Gofusion  India
Gofusion India gofusion
 

What's hot (13)

How to enhance Profitability
How to enhance ProfitabilityHow to enhance Profitability
How to enhance Profitability
 
Teradata Customer Services
Teradata Customer ServicesTeradata Customer Services
Teradata Customer Services
 
Gaining altitude and cruising smoothly to hr cloud
Gaining altitude and cruising smoothly to hr cloudGaining altitude and cruising smoothly to hr cloud
Gaining altitude and cruising smoothly to hr cloud
 
Data Warehousing Datamining Concepts
Data Warehousing Datamining ConceptsData Warehousing Datamining Concepts
Data Warehousing Datamining Concepts
 
HCL HCM Brochure
HCL HCM BrochureHCL HCM Brochure
HCL HCM Brochure
 
Business intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solutionBusiness intelligence - benefits of using an online analytical solution
Business intelligence - benefits of using an online analytical solution
 
Analyzing the Digital Workplace in Europe
Analyzing the Digital Workplace in EuropeAnalyzing the Digital Workplace in Europe
Analyzing the Digital Workplace in Europe
 
SOAIS Corporate Presentation_SAP_Ver1 -Pdf
SOAIS Corporate Presentation_SAP_Ver1 -PdfSOAIS Corporate Presentation_SAP_Ver1 -Pdf
SOAIS Corporate Presentation_SAP_Ver1 -Pdf
 
Key Note - Agile China - Kanban An Alternative Path to Agility
Key Note - Agile China - Kanban An Alternative Path to AgilityKey Note - Agile China - Kanban An Alternative Path to Agility
Key Note - Agile China - Kanban An Alternative Path to Agility
 
HCM Technology is Reshaping How We Work. What Trends Should You Respond To?
HCM Technology is Reshaping How We Work. What Trends Should You Respond To?HCM Technology is Reshaping How We Work. What Trends Should You Respond To?
HCM Technology is Reshaping How We Work. What Trends Should You Respond To?
 
70-461 Querying Microsoft SQL Server 2012
70-461 Querying Microsoft SQL Server 201270-461 Querying Microsoft SQL Server 2012
70-461 Querying Microsoft SQL Server 2012
 
Gofusion India
Gofusion  India Gofusion  India
Gofusion India
 
Business Analysis Update - August 31, 2016
Business Analysis Update - August 31, 2016Business Analysis Update - August 31, 2016
Business Analysis Update - August 31, 2016
 

Similar to Bi 6

Business View of IT Applications.pdf
Business View of IT Applications.pdfBusiness View of IT Applications.pdf
Business View of IT Applications.pdfEverlastingSong
 
Bi (1) (1)
Bi (1) (1)Bi (1) (1)
Bi (1) (1)shivz3
 
Bi (1)
Bi (1)Bi (1)
Bi (1)shivz3
 
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdfAnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdfNamanGulati17
 
Relational Databases are Evolving To Support New Data Capabilities
Relational Databases are Evolving To Support New Data CapabilitiesRelational Databases are Evolving To Support New Data Capabilities
Relational Databases are Evolving To Support New Data CapabilitiesEDB
 
What is Business Analytics?
What is Business Analytics?What is Business Analytics?
What is Business Analytics?Intellipaat
 
4 power intelligent business processes and strategy with analytic application...
4 power intelligent business processes and strategy with analytic application...4 power intelligent business processes and strategy with analytic application...
4 power intelligent business processes and strategy with analytic application...Dr. Wilfred Lin (Ph.D.)
 
Unlocking New Insights with Information Discovery
Unlocking New Insights with Information DiscoveryUnlocking New Insights with Information Discovery
Unlocking New Insights with Information DiscoveryAlithya
 
Analyzing Billions of Data Rows with Alteryx, Amazon Redshift, and Tableau
Analyzing Billions of Data Rows with Alteryx, Amazon Redshift, and TableauAnalyzing Billions of Data Rows with Alteryx, Amazon Redshift, and Tableau
Analyzing Billions of Data Rows with Alteryx, Amazon Redshift, and TableauDATAVERSITY
 
Have Data—Need Analysts. Lessons Learned From The Woodworking Industry
Have Data—Need Analysts. Lessons Learned From The Woodworking IndustryHave Data—Need Analysts. Lessons Learned From The Woodworking Industry
Have Data—Need Analysts. Lessons Learned From The Woodworking IndustryHealth Catalyst
 
March 2016 PHXTUG Meeting
March 2016 PHXTUG MeetingMarch 2016 PHXTUG Meeting
March 2016 PHXTUG MeetingMichael Perillo
 
Best practice for_agile_ds_projects
Best practice for_agile_ds_projectsBest practice for_agile_ds_projects
Best practice for_agile_ds_projectsKhalid Kahloot
 
BizTrans SysTech_Analytics_Serv_SAP_v1.0
BizTrans SysTech_Analytics_Serv_SAP_v1.0BizTrans SysTech_Analytics_Serv_SAP_v1.0
BizTrans SysTech_Analytics_Serv_SAP_v1.0BizTrans SysTech
 
Four Techniques to Run AI on Your Business Data
Four Techniques to Run AI on Your Business DataFour Techniques to Run AI on Your Business Data
Four Techniques to Run AI on Your Business DataHyoun Park
 

Similar to Bi 6 (20)

Business View of IT Applications.pdf
Business View of IT Applications.pdfBusiness View of IT Applications.pdf
Business View of IT Applications.pdf
 
Bi (1) (1)
Bi (1) (1)Bi (1) (1)
Bi (1) (1)
 
Bi (1)
Bi (1)Bi (1)
Bi (1)
 
Bi 5
Bi 5Bi 5
Bi 5
 
Bi 3
Bi 3Bi 3
Bi 3
 
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdfAnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
AnalytixLabs - Data Science 360 (Nasscom)-1648178720283 (1).pdf
 
OBIA HR Analytics
OBIA HR AnalyticsOBIA HR Analytics
OBIA HR Analytics
 
Relational Databases are Evolving To Support New Data Capabilities
Relational Databases are Evolving To Support New Data CapabilitiesRelational Databases are Evolving To Support New Data Capabilities
Relational Databases are Evolving To Support New Data Capabilities
 
What is Business Analytics?
What is Business Analytics?What is Business Analytics?
What is Business Analytics?
 
4 power intelligent business processes and strategy with analytic application...
4 power intelligent business processes and strategy with analytic application...4 power intelligent business processes and strategy with analytic application...
4 power intelligent business processes and strategy with analytic application...
 
Unlocking New Insights with Information Discovery
Unlocking New Insights with Information DiscoveryUnlocking New Insights with Information Discovery
Unlocking New Insights with Information Discovery
 
Analyzing Billions of Data Rows with Alteryx, Amazon Redshift, and Tableau
Analyzing Billions of Data Rows with Alteryx, Amazon Redshift, and TableauAnalyzing Billions of Data Rows with Alteryx, Amazon Redshift, and Tableau
Analyzing Billions of Data Rows with Alteryx, Amazon Redshift, and Tableau
 
Have Data—Need Analysts. Lessons Learned From The Woodworking Industry
Have Data—Need Analysts. Lessons Learned From The Woodworking IndustryHave Data—Need Analysts. Lessons Learned From The Woodworking Industry
Have Data—Need Analysts. Lessons Learned From The Woodworking Industry
 
March 2016 PHXTUG Meeting
March 2016 PHXTUG MeetingMarch 2016 PHXTUG Meeting
March 2016 PHXTUG Meeting
 
Best practice for_agile_ds_projects
Best practice for_agile_ds_projectsBest practice for_agile_ds_projects
Best practice for_agile_ds_projects
 
Resume
ResumeResume
Resume
 
BizTrans SysTech_Analytics_Serv_SAP_v1.0
BizTrans SysTech_Analytics_Serv_SAP_v1.0BizTrans SysTech_Analytics_Serv_SAP_v1.0
BizTrans SysTech_Analytics_Serv_SAP_v1.0
 
Bi 7
Bi 7Bi 7
Bi 7
 
Four Techniques to Run AI on Your Business Data
Four Techniques to Run AI on Your Business DataFour Techniques to Run AI on Your Business Data
Four Techniques to Run AI on Your Business Data
 
Business analyst with project training
Business analyst with project trainingBusiness analyst with project training
Business analyst with project training
 

More from shivz3

Influence of-structured--semi-structured--unstructured-data-on-various-data-m...
Influence of-structured--semi-structured--unstructured-data-on-various-data-m...Influence of-structured--semi-structured--unstructured-data-on-various-data-m...
Influence of-structured--semi-structured--unstructured-data-on-various-data-m...shivz3
 
Bi 7 (1)
Bi 7 (1)Bi 7 (1)
Bi 7 (1)shivz3
 
Nw sec
Nw secNw sec
Nw secshivz3
 
Chapter 10
Chapter 10Chapter 10
Chapter 10shivz3
 
Chapter 9
Chapter 9Chapter 9
Chapter 9shivz3
 
Chapter 7
Chapter 7Chapter 7
Chapter 7shivz3
 
Chapter 5
Chapter 5Chapter 5
Chapter 5shivz3
 
Chapter 6
Chapter 6Chapter 6
Chapter 6shivz3
 
Chapter 4
Chapter 4Chapter 4
Chapter 4shivz3
 
Chapter 2
Chapter 2Chapter 2
Chapter 2shivz3
 
Chapter 1
Chapter 1Chapter 1
Chapter 1shivz3
 
Chapter 2
Chapter 2Chapter 2
Chapter 2shivz3
 
Cryptography and network Security Chapter 1
Cryptography and network Security Chapter 1Cryptography and network Security Chapter 1
Cryptography and network Security Chapter 1shivz3
 

More from shivz3 (13)

Influence of-structured--semi-structured--unstructured-data-on-various-data-m...
Influence of-structured--semi-structured--unstructured-data-on-various-data-m...Influence of-structured--semi-structured--unstructured-data-on-various-data-m...
Influence of-structured--semi-structured--unstructured-data-on-various-data-m...
 
Bi 7 (1)
Bi 7 (1)Bi 7 (1)
Bi 7 (1)
 
Nw sec
Nw secNw sec
Nw sec
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Cryptography and network Security Chapter 1
Cryptography and network Security Chapter 1Cryptography and network Security Chapter 1
Cryptography and network Security Chapter 1
 

Recently uploaded

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 

Recently uploaded (20)

Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 

Bi 6

  • 1. Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. Chapter 7 Multidimensional Data Modeling (MDDM)
  • 2. Learning Objectives Learning Outcomes 1. To assess the capabilities of OLTP and OLAP systems (a) Appreciate the differences between OLTP and OLAP systems 2. To understand Dimensional Modeling (DM) (b) Understanding of DM, basics of data warehousing and related terminology; also an overview of what facts and dimensions are 3. To learn data warehousing in further detail through a case-study (c) Understand how to convert an OLTP schema into a dimensional schema model through various techniques of data warehousing Learning Objectives and Learning Outcomes “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 3. Lecture time : 90 minutes approx. Q/A : 15 minutes Session Plan “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 4. Agenda • Database Concepts – Recap • Introduction to On-line Analytical Processing (OLAP) • Multidimensional Data Modeling (MDDM) – To Answer Why ? Where ? When ? and How ? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 5. Recap • Databases and Tables • Normalization and Keys – ACID Properties – Primary, Foreign and Surrogate Keys – Cardinality • Transactions – On-Line Transaction Processing – On-Line Analytical Processing “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 6. Recap (contd.) • Difference between OLTP and OLAP “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 7. Comparison of OLTP and DSS OLTP Capability Examples DSS Capability Examples • Search & locate student(s) • Print student scores • Filter students above 90% marks • Update student Grade • Group by Batch and compute average score • Find top 10 high performance students • Which courses have productivity impact on-the-job? • Which colleges need to be rewarded for supplying students with consistent high on-the-job performance? • What is the customer satisfaction improvement due to extended training? • How project level profitability is influenced by certification? • How much training is needed on future technologies for non-linear growth in BI? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 8. Still a little fuzzy about what OLAP can do? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 9. Introduction to On-line Analytical Processing (OLAP) Scenario: Internal systems department at Infosys maintains all relevant data in a database. Conceptual schema is as shown below. “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 10. OLAP Contd. • CEO of the company wants the following information from the IS department. • Number of employees added in the role of the company during the last quarter/6 months/1 year Q1. How many table(s) is/are required ? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 11. Q2. How many employees are currently in the projects ? Q3. How many are on bench? OLAP Contd. “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 12. Q4. Which customer from a region has given maximum business during the previous quarter on a domain under specific technology and who are the PMs of the project and assets owned by them. OLAP Contd. “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 13. SOLUTION? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 14. So if there were very few updates and more of data-retrieval queries being made on your database, what do you think would be a better schema to adopt? OLTP or OLAP Answer a Quick Question “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 15. Introduction to Dimensional Modeling (DM) • DM is a logical design technique used in Data Warehouses (DW). It is quite directly related to OLAP systems • DM is a design technique for databases intended to support end-user queries in a DW • It is oriented around understandability, as opposed to database administration “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 16. However, before we actually jump into MDDM… let’s first understand the language of Dimensional Modeling “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 17. MDDM Terminology • Grain • Fact • Dimension • Cube • Star • Snowflake “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 18. Of hierarchies and levels… “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 19. What Is a Grain? • Identifying the grain also means deciding the level of detail that will be made available in the dimensional model • Granularity is defined as the detailed level of information stored in a table • The more the detail, the lower is the level of granularity • The lesser the detail, higher is the level of granularity “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 20. What can be measured, can be controlled… …and do you know how such measurements are stored in a data warehouse? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 21. Facts and Fact Tables • Consists of at least two or more foreign keys • Generally has huge numbers of records • Useful facts tend to be numeric and additive “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 22. Fact Types Facts Additive Non Additive Semi Additive Factless Fact “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 23. And what about descriptive data? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 24. What Are Dimensions/Dimension Tables? • The dimensional tables contain attributes (descriptive) which are typically static values containing textual data or discrete numbers which behave as text values. • Main functionalities : • Query filteringconstraining • Query result set labeling “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 25. Types of Dimensions Dimension TypeSlowly Changing Dimension Rapidly Changing Dimension Degenerate Dimension Junk (garbage) Dimension Role-playing Dimension “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 26. Understanding Dimension – Cube • An extension to the two-dimensional Table. • For example in the previous scenario CEO wants a report on revenue generated by different services across regions during each quarter “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 27. Understanding Dimension – Cube (contd.) Dimension Hierarchy Grain Fact Testing Consulting Production Support N .America Europe Asia Pacific Q1 Q2 Q3 Q4 “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 28. Can a data warehouse schema take different forms with respect to normalization? Answer a Quick Question “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 29. Star Schema The basic star schema contains four components. These are: Fact table, Dimension tables, Attributes and Dimension hierarchies “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 30. Snow Flake Schema • Normalization and expansion of the dimension tables in a star schema result in the implementation of a snowflake design. • A dimension table is said to be snow flaked when the low-cardinality attributes in the dimension have been removed to separate normalized tables and these normalized tables are then joined back into the original dimension table.
  • 31. Snow Flaking Example • Consider the Normalized form of Region dimension Region RegionID Country Code State Code City Code Country Country Code Country Name State Code City Code State State code State Name City Code City City Code City Name ZIP Decreases performance because more tables will need to be joined to satisfy queries
  • 32. Armed with these weapons that we call ‘Concepts’, let’s step into the battlefield! “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 33. Case Study Conversion of a ER Model to a Dimensional Model “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 34. ORDER order_num (PK) customer_ID (FK) store_ID (FK) clerk_ID (FK) date STORE store_ID (PK) store_name floor_type address district CLERK clerk_id (PK) clerk_name clerk_grade PRODUCT SKU (PK) Description category brand CUSTOMER customer_ID (PK) customer_name credit_profile purchase_profile address PROMOTION promotion_NUM (PK) promotion_name ad_type price_type ORDER-LINE order_num (PK) (FK) SKU (PK) (FK) promotion_key (FK) dollars_cost dollars_sold units_sold ER Diagram
  • 35. TIME time_key (PK) SQL_date day_of_week month STORE store_key (PK) store_ID store_name floor_type address district CLERK clerk_key (PK) clerk_id clerk_name clerk_grade PRODUCT product_key (PK) SKU category description brand CUSTOMER customer_key (PK) customer_name credit_profile purchase_profile address PROMOTION promotion_key (PK) promotion_name ad_type price_type FACT time_key (FK) customer_key (FK) store_key (FK) clerk_key (FK) product_key (FK) promotion_key (FK) dollars_cost dollars_sold units_sold DIMENSONAL MODEL
  • 36. Summary • Basics of Database • OLTP • MDDM • Cube • Star Schema • Snowflake schema “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.
  • 37. Food for Thought! 1. Who according to you would be the user of OLAP? 2. Who would need the Multidimensional perspective of data? “Fundamentals of Business Analytics” RN Prasad and Seema Acharya Copyright  2011 Wiley India Pvt. Ltd. All rights reserved.