SlideShare a Scribd company logo
1 of 18
11
Data WarehousingData Warehousing
Lecture-14Lecture-14
Process of Dimensional ModelingProcess of Dimensional Modeling
Virtual University of PakistanVirtual University of Pakistan
Ahsan Abdullah
Assoc. Prof. & Head
Center for Agro-Informatics Research
www.nu.edu.pk/cairindex.asp
National University of Computers & Emerging Sciences, Islamabad
Email: ahsan@cluxing.com
2
Process of Dimensional ModelingProcess of Dimensional Modeling
3
The Process of Dimensional ModelingThe Process of Dimensional Modeling
Four Step Method from ER to DMFour Step Method from ER to DM
1.1. Choose the Business ProcessChoose the Business Process
2.2. Choose the GrainChoose the Grain
3.3. Choose the FactsChoose the Facts
4.4. Choose the DimensionsChoose the Dimensions
4
Step-1: Choose the Business ProcessStep-1: Choose the Business Process
 A business process is a major operationalA business process is a major operational
process in an organization.process in an organization.
 Typically supported by a legacy systemTypically supported by a legacy system
(database) or an OLTP.(database) or an OLTP.
 Examples: Orders, Invoices, Inventory etc.Examples: Orders, Invoices, Inventory etc.
 Business Processes are often termed asBusiness Processes are often termed as
Data Marts and that is why many peopleData Marts and that is why many people
criticize DM as being data mart oriented.criticize DM as being data mart oriented.
5
Star-1
Star-2
Snow-flake
Step-1: Separating the ProcessStep-1: Separating the Process
6
Step-2: Choosing the GrainStep-2: Choosing the Grain
 Grain is the fundamental, atomic level of data to beGrain is the fundamental, atomic level of data to be
represented.represented.
 Grain is also termed as the unit of analyses.Grain is also termed as the unit of analyses.
 Example grain statementsExample grain statements
 Typical grainsTypical grains
 Individual TransactionsIndividual Transactions
 Daily aggregates (snapshots)Daily aggregates (snapshots)
 Monthly aggregatesMonthly aggregates
 Relationship between grain and expressiveness.Relationship between grain and expressiveness.
 Grain vs. hardware trade-off.Grain vs. hardware trade-off.
7
Step-2: Relationship b/w GrainStep-2: Relationship b/w Grain
Daily aggregates
6 x 4 = 24 values
Four aggregates per week
4 x 4 = 16 values
Two aggregates per week
2 x 4 = 8 values
LOW Granularity HIGH Granularity
8
The caseThe case FORFOR data aggregationdata aggregation
 Works well for repetitive queries.Works well for repetitive queries.
 Follows the known thought process.Follows the known thought process.
 Justifiable if used for max number of queries.Justifiable if used for max number of queries.
 Provides a “big picture” or macroscopic view.Provides a “big picture” or macroscopic view.
 Application dependent, usually inflexible toApplication dependent, usually inflexible to
business changes (remember lack ofbusiness changes (remember lack of
absoluteness of conventions).absoluteness of conventions).
9
The caseThe case AGAINSTAGAINST data aggregationdata aggregation
Aggregation is irreversible.Aggregation is irreversible.
 Can create monthly sales data from weekly salesCan create monthly sales data from weekly sales
data, but the reverse is not possible.data, but the reverse is not possible.
Aggregation limits the questions that can beAggregation limits the questions that can be
answered.answered.
 What,What, whenwhen, why,, why, wherewhere, what-else, what-next, what-else, what-next
10
The caseThe case AGAINSTAGAINST data aggregationdata aggregation
Aggregation can hide crucial facts.Aggregation can hide crucial facts.
The average of 100 & 100 is same as 150 & 50The average of 100 & 100 is same as 150 & 50
11
Aggregation hides crucial factsAggregation hides crucial facts
ExampleExample
Week-1 Week-2 Week-3 Week-4 Average
Zone-1 100 100 100 100 100
Zone-2 50 100 150 100 100
Zone-3 50 100 100 150 100
Zone-4 200 100 50 50 100
Average 100 100 100 100
Just looking at the averages i.e. aggregate
12
Aggregation hides crucial factsAggregation hides crucial facts
chartchart
0
50
100
150
200
250
Week-1 Week-2 Week-3 Week-4
Z1 Z2 Z3 Z4
Z1: Sale is constant (need to work on it)
Z2: Sale went up, then fell (need of concern)
Z3: Sale is on the rise, why?
Z4: Sale dropped sharply, need to look deeply.
W2: Static sale
13
“We need monthly sales
volume and Rs. by
week, product and Zone”
Facts
Dimensions
Step 3: Choose Facts statementStep 3: Choose Facts statement
14
 Choose theChoose the factsfacts that will populatethat will populate
each fact table record.each fact table record.
 Remember that best Facts are Numeric,Remember that best Facts are Numeric,
Continuously Valued and Additive.Continuously Valued and Additive.
 Example: Quantity Sold, Amount etc.Example: Quantity Sold, Amount etc.
Step 3: Choose FactsStep 3: Choose Facts
15
 Choose theChoose the dimensionsdimensions that apply tothat apply to
each fact in the fact table.each fact in the fact table.
 Typical dimensions: time, product,Typical dimensions: time, product,
geography etc.geography etc.
 Identify the descriptive attributes thatIdentify the descriptive attributes that
explain each dimension.explain each dimension.
 Determine hierarchies within eachDetermine hierarchies within each
dimension.dimension.
Step 4: Choose DimensionsStep 4: Choose Dimensions
16
Step-4: How to Identify a Dimension?Step-4: How to Identify a Dimension?
 The single valued attributesThe single valued attributes during recording of aduring recording of a
transactiontransaction are dimensions.are dimensions.
Calendar_Date
Time_of_Day
Account _No
ATM_Location
Transaction_Type
Transaction_RsTransaction_Rs
Fact Table
Dim
Time_of_day:Time_of_day: Morning, Mid Morning, Lunch Break etc.
Transaction_Type:Transaction_Type: Withdrawal, Deposit, Check balance etc.
17
Step-4: Can Dimensions be Multi-valued?Step-4: Can Dimensions be Multi-valued?
 Are dimensions ALWYS single?Are dimensions ALWYS single?
 Not reallyNot really
 What are the problems? And how to handle themWhat are the problems? And how to handle them
 Calendar_Date (of inspection)
 Reg_No
 Technician
 Workshop
 Maintenance_Operation
 How many maintenance operations are possible?How many maintenance operations are possible?
 FewFew
 Maybe more for old cars.Maybe more for old cars.
18
Step-4: Dimensions & GrainStep-4: Dimensions & Grain
 Several grains are possible as per businessSeveral grains are possible as per business
requirement.requirement.
 For some aggregations certain descriptions do notFor some aggregations certain descriptions do not
remain atomic.remain atomic.
 Example: Time_of_Day may change several timesExample: Time_of_Day may change several times
during daily aggregate, but not during a transactionduring daily aggregate, but not during a transaction
 Choose the dimensions that are applicableChoose the dimensions that are applicable
within the selected grain.within the selected grain.

More Related Content

Similar to Lecture 14

Group Presentation on Bussiness Intelligence
Group Presentation on Bussiness IntelligenceGroup Presentation on Bussiness Intelligence
Group Presentation on Bussiness IntelligenceGaurav Paliwal
 
Demystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep DiveDemystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep DiveHyderabad Scalability Meetup
 
Cluster2
Cluster2Cluster2
Cluster2work
 
Operation management
Operation managementOperation management
Operation managementPawan Kawan
 
Seeing the Whole - Creating Lean Supply Chains
Seeing the Whole - Creating Lean Supply ChainsSeeing the Whole - Creating Lean Supply Chains
Seeing the Whole - Creating Lean Supply ChainsLean Enterprise Academy
 
Barga Data Science lecture 6
Barga Data Science lecture 6Barga Data Science lecture 6
Barga Data Science lecture 6Roger Barga
 
Exploring the Data science Process
Exploring the Data science ProcessExploring the Data science Process
Exploring the Data science ProcessVishal Patel
 
Business Analytics
Business AnalyticsBusiness Analytics
Business AnalyticsBarry Shore
 
Modeling for the Non-Statistician
Modeling for the Non-StatisticianModeling for the Non-Statistician
Modeling for the Non-StatisticianAndrew Curtis
 
Introduction To Msbi By Yasir
Introduction To Msbi By YasirIntroduction To Msbi By Yasir
Introduction To Msbi By Yasiryasir873
 
Profitable Itemset Mining using Weights
Profitable Itemset Mining using WeightsProfitable Itemset Mining using Weights
Profitable Itemset Mining using WeightsIRJET Journal
 
OLAP Release 13082012
OLAP Release 13082012OLAP Release 13082012
OLAP Release 13082012Pozzolini
 
Envelopment Analysis In Economics
Envelopment Analysis In EconomicsEnvelopment Analysis In Economics
Envelopment Analysis In EconomicsAmber Rodriguez
 
IRJET - A Review on Mining High Utility Itemsets
IRJET - A Review on Mining High Utility ItemsetsIRJET - A Review on Mining High Utility Itemsets
IRJET - A Review on Mining High Utility ItemsetsIRJET Journal
 
Unit 2 Chapter 4.pdf
Unit 2 Chapter 4.pdfUnit 2 Chapter 4.pdf
Unit 2 Chapter 4.pdfmmdspgl
 
Data Mining Apriori Algorithm Implementation using R
Data Mining Apriori Algorithm Implementation using RData Mining Apriori Algorithm Implementation using R
Data Mining Apriori Algorithm Implementation using RIRJET Journal
 

Similar to Lecture 14 (20)

Group Presentation on Bussiness Intelligence
Group Presentation on Bussiness IntelligenceGroup Presentation on Bussiness Intelligence
Group Presentation on Bussiness Intelligence
 
Demystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep DiveDemystify Big Data, Data Science & Signal Extraction Deep Dive
Demystify Big Data, Data Science & Signal Extraction Deep Dive
 
Cluster2
Cluster2Cluster2
Cluster2
 
Data warehousing and Data mining
Data warehousing and Data mining Data warehousing and Data mining
Data warehousing and Data mining
 
Operation management
Operation managementOperation management
Operation management
 
Devopsdays barcelona
Devopsdays barcelonaDevopsdays barcelona
Devopsdays barcelona
 
Seeing the Whole - Creating Lean Supply Chains
Seeing the Whole - Creating Lean Supply ChainsSeeing the Whole - Creating Lean Supply Chains
Seeing the Whole - Creating Lean Supply Chains
 
Barga Data Science lecture 6
Barga Data Science lecture 6Barga Data Science lecture 6
Barga Data Science lecture 6
 
Method study
Method studyMethod study
Method study
 
Exploring the Data science Process
Exploring the Data science ProcessExploring the Data science Process
Exploring the Data science Process
 
Business Analytics
Business AnalyticsBusiness Analytics
Business Analytics
 
01 intro qa
01 intro qa01 intro qa
01 intro qa
 
Modeling for the Non-Statistician
Modeling for the Non-StatisticianModeling for the Non-Statistician
Modeling for the Non-Statistician
 
Introduction To Msbi By Yasir
Introduction To Msbi By YasirIntroduction To Msbi By Yasir
Introduction To Msbi By Yasir
 
Profitable Itemset Mining using Weights
Profitable Itemset Mining using WeightsProfitable Itemset Mining using Weights
Profitable Itemset Mining using Weights
 
OLAP Release 13082012
OLAP Release 13082012OLAP Release 13082012
OLAP Release 13082012
 
Envelopment Analysis In Economics
Envelopment Analysis In EconomicsEnvelopment Analysis In Economics
Envelopment Analysis In Economics
 
IRJET - A Review on Mining High Utility Itemsets
IRJET - A Review on Mining High Utility ItemsetsIRJET - A Review on Mining High Utility Itemsets
IRJET - A Review on Mining High Utility Itemsets
 
Unit 2 Chapter 4.pdf
Unit 2 Chapter 4.pdfUnit 2 Chapter 4.pdf
Unit 2 Chapter 4.pdf
 
Data Mining Apriori Algorithm Implementation using R
Data Mining Apriori Algorithm Implementation using RData Mining Apriori Algorithm Implementation using R
Data Mining Apriori Algorithm Implementation using R
 

More from Shani729

Python tutorialfeb152012
Python tutorialfeb152012Python tutorialfeb152012
Python tutorialfeb152012Shani729
 
Python tutorial
Python tutorialPython tutorial
Python tutorialShani729
 
Interaction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionInteraction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionShani729
 
Fm lecturer 13(final)
Fm lecturer 13(final)Fm lecturer 13(final)
Fm lecturer 13(final)Shani729
 
Lecture slides week14-15
Lecture slides week14-15Lecture slides week14-15
Lecture slides week14-15Shani729
 
Frequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth methodFrequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth methodShani729
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15Shani729
 
Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Shani729
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Shani729
 
Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Shani729
 
Dwh lecture slides-week2
Dwh lecture slides-week2Dwh lecture slides-week2
Dwh lecture slides-week2Shani729
 
Dwh lecture slides-week1
Dwh lecture slides-week1Dwh lecture slides-week1
Dwh lecture slides-week1Shani729
 
Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Shani729
 
Data warehousing and mining furc
Data warehousing and mining furcData warehousing and mining furc
Data warehousing and mining furcShani729
 
Lecture 40
Lecture 40Lecture 40
Lecture 40Shani729
 
Lecture 39
Lecture 39Lecture 39
Lecture 39Shani729
 
Lecture 38
Lecture 38Lecture 38
Lecture 38Shani729
 
Lecture 37
Lecture 37Lecture 37
Lecture 37Shani729
 
Lecture 35
Lecture 35Lecture 35
Lecture 35Shani729
 
Lecture 36
Lecture 36Lecture 36
Lecture 36Shani729
 

More from Shani729 (20)

Python tutorialfeb152012
Python tutorialfeb152012Python tutorialfeb152012
Python tutorialfeb152012
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 
Interaction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionInteraction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interaction
 
Fm lecturer 13(final)
Fm lecturer 13(final)Fm lecturer 13(final)
Fm lecturer 13(final)
 
Lecture slides week14-15
Lecture slides week14-15Lecture slides week14-15
Lecture slides week14-15
 
Frequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth methodFrequent itemset mining using pattern growth method
Frequent itemset mining using pattern growth method
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15
 
Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6
 
Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Dwh lecture slides-week3&4
Dwh lecture slides-week3&4
 
Dwh lecture slides-week2
Dwh lecture slides-week2Dwh lecture slides-week2
Dwh lecture slides-week2
 
Dwh lecture slides-week1
Dwh lecture slides-week1Dwh lecture slides-week1
Dwh lecture slides-week1
 
Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13
 
Data warehousing and mining furc
Data warehousing and mining furcData warehousing and mining furc
Data warehousing and mining furc
 
Lecture 40
Lecture 40Lecture 40
Lecture 40
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 
Lecture 38
Lecture 38Lecture 38
Lecture 38
 
Lecture 37
Lecture 37Lecture 37
Lecture 37
 
Lecture 35
Lecture 35Lecture 35
Lecture 35
 
Lecture 36
Lecture 36Lecture 36
Lecture 36
 

Recently uploaded

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 

Lecture 14

  • 1. 11 Data WarehousingData Warehousing Lecture-14Lecture-14 Process of Dimensional ModelingProcess of Dimensional Modeling Virtual University of PakistanVirtual University of Pakistan Ahsan Abdullah Assoc. Prof. & Head Center for Agro-Informatics Research www.nu.edu.pk/cairindex.asp National University of Computers & Emerging Sciences, Islamabad Email: ahsan@cluxing.com
  • 2. 2 Process of Dimensional ModelingProcess of Dimensional Modeling
  • 3. 3 The Process of Dimensional ModelingThe Process of Dimensional Modeling Four Step Method from ER to DMFour Step Method from ER to DM 1.1. Choose the Business ProcessChoose the Business Process 2.2. Choose the GrainChoose the Grain 3.3. Choose the FactsChoose the Facts 4.4. Choose the DimensionsChoose the Dimensions
  • 4. 4 Step-1: Choose the Business ProcessStep-1: Choose the Business Process  A business process is a major operationalA business process is a major operational process in an organization.process in an organization.  Typically supported by a legacy systemTypically supported by a legacy system (database) or an OLTP.(database) or an OLTP.  Examples: Orders, Invoices, Inventory etc.Examples: Orders, Invoices, Inventory etc.  Business Processes are often termed asBusiness Processes are often termed as Data Marts and that is why many peopleData Marts and that is why many people criticize DM as being data mart oriented.criticize DM as being data mart oriented.
  • 5. 5 Star-1 Star-2 Snow-flake Step-1: Separating the ProcessStep-1: Separating the Process
  • 6. 6 Step-2: Choosing the GrainStep-2: Choosing the Grain  Grain is the fundamental, atomic level of data to beGrain is the fundamental, atomic level of data to be represented.represented.  Grain is also termed as the unit of analyses.Grain is also termed as the unit of analyses.  Example grain statementsExample grain statements  Typical grainsTypical grains  Individual TransactionsIndividual Transactions  Daily aggregates (snapshots)Daily aggregates (snapshots)  Monthly aggregatesMonthly aggregates  Relationship between grain and expressiveness.Relationship between grain and expressiveness.  Grain vs. hardware trade-off.Grain vs. hardware trade-off.
  • 7. 7 Step-2: Relationship b/w GrainStep-2: Relationship b/w Grain Daily aggregates 6 x 4 = 24 values Four aggregates per week 4 x 4 = 16 values Two aggregates per week 2 x 4 = 8 values LOW Granularity HIGH Granularity
  • 8. 8 The caseThe case FORFOR data aggregationdata aggregation  Works well for repetitive queries.Works well for repetitive queries.  Follows the known thought process.Follows the known thought process.  Justifiable if used for max number of queries.Justifiable if used for max number of queries.  Provides a “big picture” or macroscopic view.Provides a “big picture” or macroscopic view.  Application dependent, usually inflexible toApplication dependent, usually inflexible to business changes (remember lack ofbusiness changes (remember lack of absoluteness of conventions).absoluteness of conventions).
  • 9. 9 The caseThe case AGAINSTAGAINST data aggregationdata aggregation Aggregation is irreversible.Aggregation is irreversible.  Can create monthly sales data from weekly salesCan create monthly sales data from weekly sales data, but the reverse is not possible.data, but the reverse is not possible. Aggregation limits the questions that can beAggregation limits the questions that can be answered.answered.  What,What, whenwhen, why,, why, wherewhere, what-else, what-next, what-else, what-next
  • 10. 10 The caseThe case AGAINSTAGAINST data aggregationdata aggregation Aggregation can hide crucial facts.Aggregation can hide crucial facts. The average of 100 & 100 is same as 150 & 50The average of 100 & 100 is same as 150 & 50
  • 11. 11 Aggregation hides crucial factsAggregation hides crucial facts ExampleExample Week-1 Week-2 Week-3 Week-4 Average Zone-1 100 100 100 100 100 Zone-2 50 100 150 100 100 Zone-3 50 100 100 150 100 Zone-4 200 100 50 50 100 Average 100 100 100 100 Just looking at the averages i.e. aggregate
  • 12. 12 Aggregation hides crucial factsAggregation hides crucial facts chartchart 0 50 100 150 200 250 Week-1 Week-2 Week-3 Week-4 Z1 Z2 Z3 Z4 Z1: Sale is constant (need to work on it) Z2: Sale went up, then fell (need of concern) Z3: Sale is on the rise, why? Z4: Sale dropped sharply, need to look deeply. W2: Static sale
  • 13. 13 “We need monthly sales volume and Rs. by week, product and Zone” Facts Dimensions Step 3: Choose Facts statementStep 3: Choose Facts statement
  • 14. 14  Choose theChoose the factsfacts that will populatethat will populate each fact table record.each fact table record.  Remember that best Facts are Numeric,Remember that best Facts are Numeric, Continuously Valued and Additive.Continuously Valued and Additive.  Example: Quantity Sold, Amount etc.Example: Quantity Sold, Amount etc. Step 3: Choose FactsStep 3: Choose Facts
  • 15. 15  Choose theChoose the dimensionsdimensions that apply tothat apply to each fact in the fact table.each fact in the fact table.  Typical dimensions: time, product,Typical dimensions: time, product, geography etc.geography etc.  Identify the descriptive attributes thatIdentify the descriptive attributes that explain each dimension.explain each dimension.  Determine hierarchies within eachDetermine hierarchies within each dimension.dimension. Step 4: Choose DimensionsStep 4: Choose Dimensions
  • 16. 16 Step-4: How to Identify a Dimension?Step-4: How to Identify a Dimension?  The single valued attributesThe single valued attributes during recording of aduring recording of a transactiontransaction are dimensions.are dimensions. Calendar_Date Time_of_Day Account _No ATM_Location Transaction_Type Transaction_RsTransaction_Rs Fact Table Dim Time_of_day:Time_of_day: Morning, Mid Morning, Lunch Break etc. Transaction_Type:Transaction_Type: Withdrawal, Deposit, Check balance etc.
  • 17. 17 Step-4: Can Dimensions be Multi-valued?Step-4: Can Dimensions be Multi-valued?  Are dimensions ALWYS single?Are dimensions ALWYS single?  Not reallyNot really  What are the problems? And how to handle themWhat are the problems? And how to handle them  Calendar_Date (of inspection)  Reg_No  Technician  Workshop  Maintenance_Operation  How many maintenance operations are possible?How many maintenance operations are possible?  FewFew  Maybe more for old cars.Maybe more for old cars.
  • 18. 18 Step-4: Dimensions & GrainStep-4: Dimensions & Grain  Several grains are possible as per businessSeveral grains are possible as per business requirement.requirement.  For some aggregations certain descriptions do notFor some aggregations certain descriptions do not remain atomic.remain atomic.  Example: Time_of_Day may change several timesExample: Time_of_Day may change several times during daily aggregate, but not during a transactionduring daily aggregate, but not during a transaction  Choose the dimensions that are applicableChoose the dimensions that are applicable within the selected grain.within the selected grain.

Editor's Notes

  1. <number>
  2. <number>
  3. <number>
  4. <number>
  5. <number>