Professional Documents
Culture Documents
Architecture
Characteristics
Relational OLAP
Multidimensional OLAP
ROLAP VS. MOLAP
Today Star Schema
Fact table
Dimensions
Product_Line->Product_Family->Product_Category->Product_Name
Multidimensional Data
Sales volume as a function of product, month, and
region
Dimensions: Product, Location, Time
Hierarchical summarization paths
on
gi
Re
Office Day
Month
A Sample Data Cube
Date Total annual sales
2Qtr of TV in U.S.A.
1Qtr 3Qtr 4Qtr sum
t
uc
TV
od
PC U.S.A
Pr
VCR
sum
Country
Canada
Mexico
sum
A Sample Data Cube
Date
t
uc
1Qtr2Qtr3Qtr4Qtr
Country
od
TV sum
Pr
For example, to find the total sales (over time) of each product in
each market, we might use
P2 6003 2402 …
P3 4503 3 …
P4 7503 7000 …
P5 … … …
Typical OLAP
Operations
Roll up (drill-up): summarize data
– by climbing up hierarchy or by dimension reduction
Drill down (roll down): reverse of roll-up
– from higher level summary to lower level summary or
detailed data, or introducing new dimensions
Slice and dice:
– project and select
Pivot (rotate):
– reorient the cube, visualization, 3D to series of 2D planes.
Other operations
– drill across: involving (across) more than one fact table
– drill through: through the bottom level of the cube to its
back-end relational tables (using SQL)
Drilling Down and Rolling
Up
Some dimension tables form an aggregation hierarchy
Market_Id → City → State → Region
Executing a series of queries that moves down a hierarchy (e.g., from
aggregation over regions to that over states) is called drilling down
– Requires the use of the fact table or information more specific
than the requested aggregation (e.g., cities)
Executing a series of queries that moves up the hierarchy (e.g., from
states to regions) is called rolling up
Drilling Down
Sales Channel
Region
Drill-Down
Country
State
Roll Up
Location Address
Sales Representative
Low-level
Details
“Slicing and Dicing”
The Telecomm Slice
Product
Household
s
Telecomm
ion
e g
R Europe
Video
Far East
Audio India
branch_key
branch location
location_key
location_key
branch_key
units_sold street
branch_name
city_key city
branch_type
dollars_sold
city_key
avg_sales city
province_or_street
Measure country
s
THANK YOU