Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Session Objectives
People. Passion. Excellence
Objectives:
2
What is OLAP?
People. Passion. Excellence
> Access to analytical content such as time series and trend analysis
analysis.
3
OLAP - Fast Analysis
People. Passion. Excellence
• Processing Data-based
Information
4
Need for OLAP
People. Passion. Excellence
2 or 3
1 or 2
5
Need for OLAP
People. Passion. Excellence
channel, etc.,
6
OLAP in an Enterprise
People. Passion. Excellence
7
Uses of OLAP
People. Passion. Excellence
Departments:
• Finance
• Marketing
• Sales
• Manufacturing
Analytical Capabilities:
> Offers aggregated view of the data, such as total revenues by customer
8
Functionality of OLAP Tools
People. Passion. Excellence
9
Features of OLAP Applications
People. Passion. Excellence
10
Evolution of OLAP
Star Schema
People. Passion. Excellence
12
Facts and Measures
People. Passion. Excellence
u e
e n Gros
e v s Marg
s R in
le Net Pro
f it
Sa
P ro st
fita Co
bili
ty
13
Dimension
People. Passion. Excellence
n ue
e ve ) What was sold ?
s R re
l e s u Whom was it sold to ?
Sa M e a When was it sold ?
(
Where was it sold ?
14
Star Schema
People. Passion. Excellence
15
Star Schema Example
People. Passion. Excellence
16
Star Schema with Sample Data
People. Passion. Excellence
17
CUBE
People. Passion. Excellence
Cube
– Multi dimensional databases store information in the form of
cubes.
– A cube is a collection of facts and related dimensions stored
together in arrays.
Geography
Sales
HR
Time
Product
Basic Terminology of a Cube
People. Passion. Excellence
> Hierarchy: A hierarchy defines the navigating path for drilling up and drilling
down. All attributes in a hierarchy belong to the same dimension.
> Levels: These are organized into one or more hierarchies, typically from a
coarse-grained level (for example, Year) down to the most detailed one (for
example, Day).
> Members: The individual category values (for example, 2002 or 21Jan2002).
> Measures: These are the data values that are summarized and analyzed.
Examples of measures are sales figures or operational costs.
> Cells: These are the intersection of one member for every dimension and
store the data for measures.
19
Basic Terminology of a Cube
People. Passion. Excellence
Level 2000
OfYEAR
1999 2001
– Level
– Hierarchy
Detail
Q3 Q4
QUARTER
Q1 Q2 Q3 Q4 Q1 Q2 – Member
20
Aggregates
People. Passion. Excellence
21
Aggregates
People. Passion. Excellence
22
Another Example
People. Passion. Excellence
rollup
drill-down
23
Aggregates
People. Passion. Excellence
24
The MOLAP Cube
People. Passion. Excellence
dimensions = 2
25
3-D Cube
People. Passion. Excellence
dimensions = 3
26
Example
People. Passion. Excellence
roll-up to region
Dimensions:
e NY
or SF Time, Product, Store
St roll-up to brand
LA Attributes:
Product (upc, price, …)
Juice 10
Store …
Product
Milk 34
56
…
Coke
32
Hierarchies:
Cream
12 Product → Brand → …
Soap
Bread 56 roll-up to week Day → Week → Quarter
M T W Th F S S Store → Region → Country
Time
56 units of bread sold in LA on M
27
Cube Aggregation: Roll-up
People. Passion. Excellence
s1 s2 s3
sum 67 12 50
s1 s2 s3
p1 56 4 50
p2 11 8
129
rollup sum
p1 110
drill-down p2 19
28
Aggregation Using Hierarchies
People. Passion. Excellence
s1 s2 s3
day 2
p1 44 4 store
p2 s1 s2 s3
day 1
p1 12 50
p2 11 8
region
country
region A region B
p1 56 54
p2 11 8
(store s1 in Region A;
stores s2, s3 in Region B)
29
People. Passion. Excellence
Slicing
• In SQL: SELECT * FROM SALE WHERE date = 1
s1 s2 s3
day 2
p1 44 4
p2 s1 s2 s3
day 1
p1 12 50
p2 11 8
TIME = day 1
s1 s2 s3
p1 12 50
p2 11 8
30
OLAP Solutions and Architecture
OLAP - Classification
People. Passion. Excellence
32
MOLAP
People. Passion. Excellence
Brand
p
ou
Gr
e
Ag
Geography
• Multi-dimensional OLAP
• MOLAP is a technology which uses a multi-dimensional database
that stores data as n-dimensional cube
33
Architecture of MOLAP
People. Passion. Excellence
i c al
non-live connection C rit
e
•Used for Siz
updating the ube
MOLAP data cube
C LAN
only
Desktop Systems
Data Mart Server
MOLAP Client
•RDBMS MOLAP Server
Tools
•Connectivity Middleware
•MDDBMS/Data Cube
•MOLAP Application
Router
Firewall
Issues: Intranet
Internet
• Size of Data Cube
Thin Clients
• Cubes deployment
•WWW Browser
• Size of Update Data Set
34
MOLAP Products
People. Passion. Excellence
35
Architecture of ROLAP
People. Passion. Excellence
LAN
Router /
Issues: Firewall
• Aggregate Awareness Intranet
• Response Time Internet
Thin Clients
•Network Capacity
•WWW Browser
36
ROLAP Products
People. Passion. Excellence
• Business Objects
• Metacube
• DSS Server
• Information Advantage
37
Architecture of HOLAP
People. Passion. Excellence
LAN
MOLAP Server
ROLAP Server Desktop Systems
•MDDBMS/Data Cube HOLAP Client
•MOLAP Application •ROLAP Application
Tools
Router/Fire
wall
Issues:
•Cube elements
•Integration with
RDBMS
38
HOLAP Products
People. Passion. Excellence
• SAS
39
MOLAP Vs ROLAP
Comparison of Architectures
People. Passion. Excellence
41
Strength and Weakness of MOLAP/ROLAP
People. Passion. Excellence
42
Strength and Weakness of MOLAP/ROLAP
People. Passion. Excellence
43
Session Summary
People. Passion. Excellence
44
Thank you