SlideShare a Scribd company logo
Ahsan AbdullahAhsan Abdullah
11
Data WarehousingData Warehousing
Lecture-10Lecture-10
Online Analytical Processing (OLAP)Online Analytical Processing (OLAP)
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
Ahsan Abdullah
2
DWH & OLAPDWH & OLAP
Relationship between DWH &Relationship between DWH &
OLAPOLAP
Data Warehouse & OLAP goData Warehouse & OLAP go
together.together.
Analysis supported by OLAPAnalysis supported by OLAP
Ahsan Abdullah
3
Supporting the human thought processSupporting the human thought process
How many such query sequences can be programmed in advance?How many such query sequences can be programmed in advance?
THOUGHT PROCESSTHOUGHT PROCESS QUERY SEQUENCEQUERY SEQUENCE
An enterprise wide fall in profit
Profit down by a large
percentage consistently during
last quarter only. Rest is OK
What is special about last
quarter ?
Products alone doing OK, but
North region is most
problematic.
What was the quarterly sales
during last year ??
What was the quarterly sales at
regional level during last year ??
What was the monthly sale for
last quarter group by products
What was the monthly sale of
products in north at store level
group by products purchased
OK. So the problem is the high
cost of products purchased
in north.
What was the quarterly sales at
product level during last year?

?
What was the monthly sale for
last quarter group by region
Ahsan Abdullah
4
Analysis of last exampleAnalysis of last example
 Analysis isAnalysis is Ad-hocAd-hoc
 Analysis isAnalysis is interactiveinteractive (user driven)(user driven)
 Analysis isAnalysis is iterativeiterative
 Answer to one question leads to a dozen moreAnswer to one question leads to a dozen more
 Analysis isAnalysis is directionaldirectional
 Drill DownDrill Down
 Roll UpRoll Up
 PivotPivot
More in
subsequent
slides
Ahsan Abdullah
5
Challenges…Challenges…
 Not feasible to write predefined queries.Not feasible to write predefined queries.
 Fails to remain user_driven (becomesFails to remain user_driven (becomes
programmer driven).programmer driven).
 Fails to remain ad_hoc and hence is notFails to remain ad_hoc and hence is not
interactive.interactive.
 Enable ad-hoc query supportEnable ad-hoc query support
 Business user can not build his/her own queriesBusiness user can not build his/her own queries
(does not know SQL, should not know it).(does not know SQL, should not know it).
 On_the_go SQL generation and execution tooOn_the_go SQL generation and execution too
slow.slow.
Ahsan Abdullah
6
ChallengesChallenges
 ContradictionContradiction
 Want to compute answers in advance, but don'tWant to compute answers in advance, but don't
know the questionsknow the questions
 SolutionSolution
 Compute answers to “all” possible “queries”. ButCompute answers to “all” possible “queries”. But
how?how?
 NOTE: Queries are multidimensionalNOTE: Queries are multidimensional
aggregates at some levelaggregates at some level
Ahsan Abdullah
7
““All” possible queries (level aggregates)All” possible queries (level aggregates)
Province Frontier Punjab...
Division MultanLahorePeshawarMardan ......
Lahore ... Gugranwala
City
Zone GulbergDefense ...
District LahorePeshawar
ALL ALLALL ALL
Ahsan Abdullah
8
OLAP: Facts & DimensionsOLAP: Facts & Dimensions
 FACTS:FACTS: Quantitative values (numbers) orQuantitative values (numbers) or
“measures.”“measures.”
 e.g., units sold, sales $, Ce.g., units sold, sales $, Coo
, Kg etc., Kg etc.
 DIMENSIONS:DIMENSIONS: Descriptive categories.Descriptive categories.
 e.g., time, geography, product etc.e.g., time, geography, product etc.
 DIM often organized in hierarchies representingDIM often organized in hierarchies representing
levels of detail in the data (e.g., week, month,levels of detail in the data (e.g., week, month,
quarter, year, decade etc.).quarter, year, decade etc.).
Ahsan Abdullah
9
Where Does OLAP Fit In?Where Does OLAP Fit In?
 It is a classification of applications,It is a classification of applications, NOTNOT aa
database design technique.database design technique.
 Analytical processing usesAnalytical processing uses multi-levelmulti-level
aggregatesaggregates, instead of, instead of record level accessrecord level access..
 Objective is to support veryObjective is to support very
I.I. fastfast
II.II. iterative anditerative and
III.III. ad-hoc decision-making.ad-hoc decision-making.
Ahsan Abdullah
10
Where does OLAP fit in?Where does OLAP fit in?
Transaction
Data

Presentation
Tools
Reports
OLAP
Data Cube
(MOLAP)
Data
Loading

?
Decision
Maker
Ahsan Abdullah
11
OLTP vs. OLAPOLTP vs. OLAP
Feature OLTP OLAP
Level of data Detailed Aggregated
Amount of data per
transaction
Small Large
Views Pre-defined User-defined
Typical write
operation
Update, insert, delete Bulk insert
“age” of data Current (60-90 days) Historical 5-10 years and
also current
Number of users High Low-Med
Tables Flat tables Multi-Dimensional tables
Database size Med (109
B – 1012
B) High (1012
B – 1015
B)
Query Optimizing Requires experience Already “optimized”
Data availability High Low-Med
Ahsan Abdullah
12
OLAP FASMI TestOLAP FASMI Test
FFast:ast: Delivers information to the user at a fairly constant rate.Delivers information to the user at a fairly constant rate.
Most queries answered in under five seconds.Most queries answered in under five seconds.
AAnalysis:nalysis: Performs basic numerical and statistical analysisPerforms basic numerical and statistical analysis
of the data, pre-defined by an application developer or definedof the data, pre-defined by an application developer or defined
ad-hocly by the user.ad-hocly by the user.
SShared:hared: Implements the security requirements necessary forImplements the security requirements necessary for
sharing potentially confidential data across a large usersharing potentially confidential data across a large user
population.population.
MMulti-dimensional:ulti-dimensional: The essential characteristic of OLAP.The essential characteristic of OLAP.
IInformation:nformation: Accesses all the data and informationAccesses all the data and information
necessary and relevant for the application, wherever it maynecessary and relevant for the application, wherever it may
reside and not limited by volume.reside and not limited by volume.
...from the...from the OLAP ReportOLAP Report by Pendse and Creeth.by Pendse and Creeth.

More Related Content

What's hot

HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...
HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...
HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...
Cloudera, Inc.
 
Data Warehouse Best Practices
Data Warehouse Best PracticesData Warehouse Best Practices
Data Warehouse Best Practices
Eduardo Castro
 
Cs437 lecture 1-6
Cs437 lecture 1-6Cs437 lecture 1-6
Cs437 lecture 1-6
Aneeb_Khawar
 
Best Laid Plans: Saving Time, Money and Trouble with Optimal Forecasting
Best Laid Plans: Saving Time, Money and Trouble with Optimal ForecastingBest Laid Plans: Saving Time, Money and Trouble with Optimal Forecasting
Best Laid Plans: Saving Time, Money and Trouble with Optimal Forecasting
Eric Kavanagh
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
Edureka!
 
Msbi by quontra us
Msbi by quontra usMsbi by quontra us
Msbi by quontra us
QUONTRASOLUTIONS
 
Lecture 33
Lecture 33Lecture 33
Lecture 33
Shani729
 
Data science life cycle
Data science life cycleData science life cycle
Data science life cycle
Manoj Mishra
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
Dr. Sunil Kr. Pandey
 
HySynth Clinical Data Repository
HySynth Clinical Data RepositoryHySynth Clinical Data Repository
HySynth Clinical Data Repository
Mahalingam Vasudevan
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
Shani729
 

What's hot (11)

HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...
HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...
HBaseCon 2013: Evolving a First-Generation Apache HBase Deployment to Second ...
 
Data Warehouse Best Practices
Data Warehouse Best PracticesData Warehouse Best Practices
Data Warehouse Best Practices
 
Cs437 lecture 1-6
Cs437 lecture 1-6Cs437 lecture 1-6
Cs437 lecture 1-6
 
Best Laid Plans: Saving Time, Money and Trouble with Optimal Forecasting
Best Laid Plans: Saving Time, Money and Trouble with Optimal ForecastingBest Laid Plans: Saving Time, Money and Trouble with Optimal Forecasting
Best Laid Plans: Saving Time, Money and Trouble with Optimal Forecasting
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
 
Msbi by quontra us
Msbi by quontra usMsbi by quontra us
Msbi by quontra us
 
Lecture 33
Lecture 33Lecture 33
Lecture 33
 
Data science life cycle
Data science life cycleData science life cycle
Data science life cycle
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
 
HySynth Clinical Data Repository
HySynth Clinical Data RepositoryHySynth Clinical Data Repository
HySynth Clinical Data Repository
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 

Similar to Lecture 10

Cs437 lecture 09
Cs437 lecture 09Cs437 lecture 09
Cs437 lecture 09
Aneeb_Khawar
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
Shani729
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
Shani729
 
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/RailsActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
Paul Gallagher
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
Shani729
 
Olap, expert system, data visualisation
Olap, expert system, data visualisationOlap, expert system, data visualisation
Olap, expert system, data visualisation
Talent Corner HR Services Pvt Ltd.
 
Intro to Data warehousing lecture 05
Intro to Data warehousing   lecture 05Intro to Data warehousing   lecture 05
Intro to Data warehousing lecture 05
AnwarrChaudary
 
Big Data Discovery
Big Data DiscoveryBig Data Discovery
Big Data Discovery
Harald Erb
 
Olap
OlapOlap
Carrenza event - deliver without sacrifice. Are you in control of your cloud?
Carrenza event  - deliver without sacrifice. Are you in control of your cloud?Carrenza event  - deliver without sacrifice. Are you in control of your cloud?
Carrenza event - deliver without sacrifice. Are you in control of your cloud?
Carrenza
 
Electronic patients records system based on oracle apex
Electronic patients records system based on oracle apexElectronic patients records system based on oracle apex
Electronic patients records system based on oracle apex
Jan Karremans
 
Dwh lecture 10-olap
Dwh   lecture 10-olapDwh   lecture 10-olap
Dwh lecture 10-olap
Sulman Ahmed
 
Big Data and Oracle - 2013
Big Data and Oracle - 2013Big Data and Oracle - 2013
Big Data and Oracle - 2013
Connor McDonald
 
Lecture 1.ppt
Lecture 1.pptLecture 1.ppt
Lecture 1.ppt
AttaUrRahman78
 
Lecture 1.ppt
Lecture 1.pptLecture 1.ppt
Lecture 1.ppt
AttaUrRahman78
 
Symphony Driver Essay
Symphony Driver EssaySymphony Driver Essay
Symphony Driver Essay
Angie Jorgensen
 
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 minsSparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
sparkflows
 
How to implement Hadoop successfully
How to implement Hadoop successfullyHow to implement Hadoop successfully
How to implement Hadoop successfully
Adir Sharabi
 
Palo Webinar
Palo WebinarPalo Webinar
Palo Webinar
Julien Delvat
 
OLAP Release 13082012
OLAP Release 13082012OLAP Release 13082012
OLAP Release 13082012
Pozzolini
 

Similar to Lecture 10 (20)

Cs437 lecture 09
Cs437 lecture 09Cs437 lecture 09
Cs437 lecture 09
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/RailsActiveWarehouse/ETL - BI & DW for Ruby/Rails
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Olap, expert system, data visualisation
Olap, expert system, data visualisationOlap, expert system, data visualisation
Olap, expert system, data visualisation
 
Intro to Data warehousing lecture 05
Intro to Data warehousing   lecture 05Intro to Data warehousing   lecture 05
Intro to Data warehousing lecture 05
 
Big Data Discovery
Big Data DiscoveryBig Data Discovery
Big Data Discovery
 
Olap
OlapOlap
Olap
 
Carrenza event - deliver without sacrifice. Are you in control of your cloud?
Carrenza event  - deliver without sacrifice. Are you in control of your cloud?Carrenza event  - deliver without sacrifice. Are you in control of your cloud?
Carrenza event - deliver without sacrifice. Are you in control of your cloud?
 
Electronic patients records system based on oracle apex
Electronic patients records system based on oracle apexElectronic patients records system based on oracle apex
Electronic patients records system based on oracle apex
 
Dwh lecture 10-olap
Dwh   lecture 10-olapDwh   lecture 10-olap
Dwh lecture 10-olap
 
Big Data and Oracle - 2013
Big Data and Oracle - 2013Big Data and Oracle - 2013
Big Data and Oracle - 2013
 
Lecture 1.ppt
Lecture 1.pptLecture 1.ppt
Lecture 1.ppt
 
Lecture 1.ppt
Lecture 1.pptLecture 1.ppt
Lecture 1.ppt
 
Symphony Driver Essay
Symphony Driver EssaySymphony Driver Essay
Symphony Driver Essay
 
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 minsSparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
Sparkflows - Build E2E Data Analytics Use Cases in less than 30 mins
 
How to implement Hadoop successfully
How to implement Hadoop successfullyHow to implement Hadoop successfully
How to implement Hadoop successfully
 
Palo Webinar
Palo WebinarPalo Webinar
Palo Webinar
 
OLAP Release 13082012
OLAP Release 13082012OLAP Release 13082012
OLAP Release 13082012
 

More from Shani729

Python tutorialfeb152012
Python tutorialfeb152012Python tutorialfeb152012
Python tutorialfeb152012
Shani729
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
Shani729
 
Interaction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interactionInteraction design _beyond_human_computer_interaction
Interaction design _beyond_human_computer_interaction
Shani729
 
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-15
Shani729
 
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
Shani729
 
Dwh lecture slides-week15
Dwh lecture slides-week15Dwh lecture slides-week15
Dwh lecture slides-week15
Shani729
 
Dwh lecture slides-week10
Dwh lecture slides-week10Dwh lecture slides-week10
Dwh lecture slides-week10
Shani729
 
Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8Dwh lecture slidesweek7&8
Dwh lecture slidesweek7&8
Shani729
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6
Shani729
 
Dwh lecture slides-week3&4
Dwh lecture slides-week3&4Dwh lecture slides-week3&4
Dwh lecture slides-week3&4
Shani729
 
Dwh lecture slides-week2
Dwh lecture slides-week2Dwh lecture slides-week2
Dwh lecture slides-week2
Shani729
 
Dwh lecture slides-week1
Dwh lecture slides-week1Dwh lecture slides-week1
Dwh lecture slides-week1
Shani729
 
Dwh lecture slides-week 13
Dwh lecture slides-week 13Dwh lecture slides-week 13
Dwh lecture slides-week 13
Shani729
 
Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13Dwh lecture slides-week 12&13
Dwh lecture slides-week 12&13
Shani729
 
Data warehousing and mining furc
Data warehousing and mining furcData warehousing and mining furc
Data warehousing and mining furc
Shani729
 
Lecture 40
Lecture 40Lecture 40
Lecture 40
Shani729
 
Lecture 38
Lecture 38Lecture 38
Lecture 38
Shani729
 
Lecture 37
Lecture 37Lecture 37
Lecture 37
Shani729
 
Lecture 35
Lecture 35Lecture 35
Lecture 35
Shani729
 

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 slides-week10
Dwh lecture slides-week10Dwh lecture slides-week10
Dwh lecture slides-week10
 
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 13
Dwh lecture slides-week 13Dwh lecture slides-week 13
Dwh lecture slides-week 13
 
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 38
Lecture 38Lecture 38
Lecture 38
 
Lecture 37
Lecture 37Lecture 37
Lecture 37
 
Lecture 35
Lecture 35Lecture 35
Lecture 35
 

Recently uploaded

Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
Indrajeet sahu
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
2. protection of river banks and bed erosion protection works.ppt
2. protection of river banks and bed erosion protection works.ppt2. protection of river banks and bed erosion protection works.ppt
2. protection of river banks and bed erosion protection works.ppt
abdatawakjira
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
Kamal Acharya
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
Shiny Christobel
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
ijaia
 
5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
AlvianRamadhani5
 
TIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptxTIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptx
CVCSOfficial
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
harshapolam10
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
ijseajournal
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
b0754201
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
Paris Salesforce Developer Group
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
Kamal Acharya
 
P5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civilP5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civil
AnasAhmadNoor
 

Recently uploaded (20)

Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
2. protection of river banks and bed erosion protection works.ppt
2. protection of river banks and bed erosion protection works.ppt2. protection of river banks and bed erosion protection works.ppt
2. protection of river banks and bed erosion protection works.ppt
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
 
Zener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and ApplicationsZener Diode and its V-I Characteristics and Applications
Zener Diode and its V-I Characteristics and Applications
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
 
TIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptxTIME TABLE MANAGEMENT SYSTEM testing.pptx
TIME TABLE MANAGEMENT SYSTEM testing.pptx
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 
SCALING OF MOS CIRCUITS m .pptx
SCALING OF MOS CIRCUITS m                 .pptxSCALING OF MOS CIRCUITS m                 .pptx
SCALING OF MOS CIRCUITS m .pptx
 
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...Call For Paper -3rd International Conference on Artificial Intelligence Advan...
Call For Paper -3rd International Conference on Artificial Intelligence Advan...
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
 
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
AI + Data Community Tour - Build the Next Generation of Apps with the Einstei...
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
 
P5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civilP5 Working Drawings.pdf floor plan, civil
P5 Working Drawings.pdf floor plan, civil
 

Lecture 10

  • 1. Ahsan AbdullahAhsan Abdullah 11 Data WarehousingData Warehousing Lecture-10Lecture-10 Online Analytical Processing (OLAP)Online Analytical Processing (OLAP) 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. Ahsan Abdullah 2 DWH & OLAPDWH & OLAP Relationship between DWH &Relationship between DWH & OLAPOLAP Data Warehouse & OLAP goData Warehouse & OLAP go together.together. Analysis supported by OLAPAnalysis supported by OLAP
  • 3. Ahsan Abdullah 3 Supporting the human thought processSupporting the human thought process How many such query sequences can be programmed in advance?How many such query sequences can be programmed in advance? THOUGHT PROCESSTHOUGHT PROCESS QUERY SEQUENCEQUERY SEQUENCE An enterprise wide fall in profit Profit down by a large percentage consistently during last quarter only. Rest is OK What is special about last quarter ? Products alone doing OK, but North region is most problematic. What was the quarterly sales during last year ?? What was the quarterly sales at regional level during last year ?? What was the monthly sale for last quarter group by products What was the monthly sale of products in north at store level group by products purchased OK. So the problem is the high cost of products purchased in north. What was the quarterly sales at product level during last year?  ? What was the monthly sale for last quarter group by region
  • 4. Ahsan Abdullah 4 Analysis of last exampleAnalysis of last example  Analysis isAnalysis is Ad-hocAd-hoc  Analysis isAnalysis is interactiveinteractive (user driven)(user driven)  Analysis isAnalysis is iterativeiterative  Answer to one question leads to a dozen moreAnswer to one question leads to a dozen more  Analysis isAnalysis is directionaldirectional  Drill DownDrill Down  Roll UpRoll Up  PivotPivot More in subsequent slides
  • 5. Ahsan Abdullah 5 Challenges…Challenges…  Not feasible to write predefined queries.Not feasible to write predefined queries.  Fails to remain user_driven (becomesFails to remain user_driven (becomes programmer driven).programmer driven).  Fails to remain ad_hoc and hence is notFails to remain ad_hoc and hence is not interactive.interactive.  Enable ad-hoc query supportEnable ad-hoc query support  Business user can not build his/her own queriesBusiness user can not build his/her own queries (does not know SQL, should not know it).(does not know SQL, should not know it).  On_the_go SQL generation and execution tooOn_the_go SQL generation and execution too slow.slow.
  • 6. Ahsan Abdullah 6 ChallengesChallenges  ContradictionContradiction  Want to compute answers in advance, but don'tWant to compute answers in advance, but don't know the questionsknow the questions  SolutionSolution  Compute answers to “all” possible “queries”. ButCompute answers to “all” possible “queries”. But how?how?  NOTE: Queries are multidimensionalNOTE: Queries are multidimensional aggregates at some levelaggregates at some level
  • 7. Ahsan Abdullah 7 ““All” possible queries (level aggregates)All” possible queries (level aggregates) Province Frontier Punjab... Division MultanLahorePeshawarMardan ...... Lahore ... Gugranwala City Zone GulbergDefense ... District LahorePeshawar ALL ALLALL ALL
  • 8. Ahsan Abdullah 8 OLAP: Facts & DimensionsOLAP: Facts & Dimensions  FACTS:FACTS: Quantitative values (numbers) orQuantitative values (numbers) or “measures.”“measures.”  e.g., units sold, sales $, Ce.g., units sold, sales $, Coo , Kg etc., Kg etc.  DIMENSIONS:DIMENSIONS: Descriptive categories.Descriptive categories.  e.g., time, geography, product etc.e.g., time, geography, product etc.  DIM often organized in hierarchies representingDIM often organized in hierarchies representing levels of detail in the data (e.g., week, month,levels of detail in the data (e.g., week, month, quarter, year, decade etc.).quarter, year, decade etc.).
  • 9. Ahsan Abdullah 9 Where Does OLAP Fit In?Where Does OLAP Fit In?  It is a classification of applications,It is a classification of applications, NOTNOT aa database design technique.database design technique.  Analytical processing usesAnalytical processing uses multi-levelmulti-level aggregatesaggregates, instead of, instead of record level accessrecord level access..  Objective is to support veryObjective is to support very I.I. fastfast II.II. iterative anditerative and III.III. ad-hoc decision-making.ad-hoc decision-making.
  • 10. Ahsan Abdullah 10 Where does OLAP fit in?Where does OLAP fit in? Transaction Data  Presentation Tools Reports OLAP Data Cube (MOLAP) Data Loading  ? Decision Maker
  • 11. Ahsan Abdullah 11 OLTP vs. OLAPOLTP vs. OLAP Feature OLTP OLAP Level of data Detailed Aggregated Amount of data per transaction Small Large Views Pre-defined User-defined Typical write operation Update, insert, delete Bulk insert “age” of data Current (60-90 days) Historical 5-10 years and also current Number of users High Low-Med Tables Flat tables Multi-Dimensional tables Database size Med (109 B – 1012 B) High (1012 B – 1015 B) Query Optimizing Requires experience Already “optimized” Data availability High Low-Med
  • 12. Ahsan Abdullah 12 OLAP FASMI TestOLAP FASMI Test FFast:ast: Delivers information to the user at a fairly constant rate.Delivers information to the user at a fairly constant rate. Most queries answered in under five seconds.Most queries answered in under five seconds. AAnalysis:nalysis: Performs basic numerical and statistical analysisPerforms basic numerical and statistical analysis of the data, pre-defined by an application developer or definedof the data, pre-defined by an application developer or defined ad-hocly by the user.ad-hocly by the user. SShared:hared: Implements the security requirements necessary forImplements the security requirements necessary for sharing potentially confidential data across a large usersharing potentially confidential data across a large user population.population. MMulti-dimensional:ulti-dimensional: The essential characteristic of OLAP.The essential characteristic of OLAP. IInformation:nformation: Accesses all the data and informationAccesses all the data and information necessary and relevant for the application, wherever it maynecessary and relevant for the application, wherever it may reside and not limited by volume.reside and not limited by volume. ...from the...from the OLAP ReportOLAP Report by Pendse and Creeth.by Pendse and Creeth.

Editor's Notes

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