Professional Documents
Culture Documents
Concepts and
Techniques
May 5, 2015
May 5, 2015
May 5, 2015
Data WarehouseSubjectOriented
May 5, 2015
Data WarehouseIntegrated
May 5, 2015
May 5, 2015
Data WarehouseNon-Volatile
May 5, 2015
May 5, 2015
May 5, 2015
OLAP
users
clerk, IT professional
knowledge worker
function
decision support
DB design
application-oriented
subject-oriented
data
current, up-to-date
detailed, flat relational
isolated
repetitive
historical,
summarized, multidimensional
integrated, consolidated
ad-hoc
lots of scans
unit of work
read/write
index/hash on prim. key
short, simple transaction
# records accessed
tens
millions
#users
thousands
hundreds
DB size
100MB-GB
100GB-TB
metric
transaction throughput
usage
access
May 5, 2015
complex query
10
May 5, 2015
11
May 5, 2015
12
Cube: A Lattice of
Cuboids
all
time
time,item
0-D(apex) cuboid
item
time,location
location
item,location
time,supplier
time,item,location
supplier
location,supplier
item,supplier
time,location,supplier
time,item,supplier
1-D cuboids
2-D cuboids
3-D cuboids
item,location,supplier
4-D(base) cuboid
May 5, 2015
13
Conceptual Modeling
of Data Warehouses
May 5, 2015
14
time
time_key
day
day_of_the_week
month
quarter
year
branch
branch_key
branch_name
branch_type
location_key
units_sold
dollars_sold
avg_sales
item_key
item_name
brand
type
supplier_type
location
location_key
street
city
province_or_street
country
Measures
May 5, 2015
15
time
time_key
day
day_of_the_week
month
quarter
year
item
Sales Fact Table
time_key
item_key
branch_key
branch
location_key
branch_key
branch_name
branch_type
units_sold
dollars_sold
avg_sales
Measures
May 5, 2015
item_key
item_name
brand
type
supplier_key
supplier
supplier_key
supplier_type
location
location_key
street
city_key
city
city_key
city
province_or_street
country
16
Example of Fact
Constellation
time
time_key
day
day_of_the_week
month
quarter
year
item
Sales Fact Table
time_key
item_key
item_key
item_name
brand
type
supplier_type
branch_key
location_key
branch
branch_key
branch_name
branch_type
units_sold
dollars_sold
avg_sales
Measures
May 5, 2015
location
to_location
location_key
street
city
province_or_street
country
dollars_cost
units_shipped
shipper
shipper_key
shipper_name
location_key
shipper_type17
May 5, 2015
18
May 5, 2015
19
May 5, 2015
20
May 5, 2015
21
Measures: Three
Categories
May 5, 2015
22
all
Europe
region
Germany
country
city
Frankfurt
office
May 5, 2015
...
...
...
Spain
North_America
Canada
Vancouver ...
L. Chan
...
...
Mexico
Toronto
M. Wind
23
Specification of hierarchies
Schema hierarchy
day < {month < quarter;
week} < year
Set_grouping hierarchy
{1..10} < inexpensive
May 5, 2015
24
Multidimensional Data
Sales volume as a function of product,
month, and region
Re
gi
on
Industry Region
Year
Product
City
Office
Month Week
Day
Month
May 5, 2015
25
Pr
od
u
TV
PC
VCR
sum
1Qtr
2Qtr
Date
3Qtr
4Qtr
sum
Country
ct
sum
May 5, 2015
26
date
country
product,country
1-D cuboids
date, country
2-D cuboids
May 5, 2015
3-D(base) cuboid
27
May 5, 2015
Visualization
OLAP capabilities
Interactive manipulation
28
Pivot (rotate):
Other operations
May 5, 2015
29
Shipping Method
Customer
CONTRACTS
AIR-EXPRESS
ORDER
TRUCK
Time
PRODUCT LINE
ANNUALY QTRLY
DAILY
CITY
PRODUCT ITEM
Product
PRODUCT GROUP
SALES PERSON
COUNTRY
DISTRICT
REGION
Location
May 5,
Each circle is
called a
2015
footprint
DIVISION
Promotion
Organization
30
May 5, 2015
31
Top-down view
May 5, 2015
32
May 5, 2015
33
Multi-Tiered Architecture
other
Metadata
source
s
Operational
DBs
Extract
Transform
Load
Refresh
Monitor
&
Integrator
Data
Warehouse
OLAP Server
Serve
Analysis
Query
Reports
Data mining
Data Marts
Data Sources
May 5, 2015
Data Storage
Enterprise warehouse
collects all of the information about subjects spanning
the entire organization
Data Mart
a subset of corporate-wide data that is of value to a
specific groups of users. Its scope is confined to
specific, selected groups, such as marketing data mart
Virtual warehouse
A set of views over operational databases
Only some of the possible summary views may be
materialized
May 5, 2015
35
Data Warehouse
Development: A
Recommended Approach
Multi-Tier Data
Warehouse
Distributed
Data Marts
Data
Mart
Data
Mart
Model refinement
Enterprise
Data
Warehouse
Model refinement
May 5, 2015
36
May 5, 2015
37
May 5, 2015
38
Cube Operation
(city)
()
(item)
(year)
May 5, 2015
39
May 5, 2015
40
c3 61
62
63
64
c2 45
46
47
48
c1 29
30
31
32
c0
b3
B13
b2
b1
b0
14
15
16
a0
a1
a2
a3
May 5, 2015 A
60
44
28 56
40
24 52
36
20
42
c3 61
62
63
64
c2 45
46
47
48
c1 29
30
31
32
c0
b3
b2
B13
14
15
16
28
24
b1
b0
a0
a1
a2
a3
20
44
40
36
60
56
52
May 5, 2015
43
c3 61
62
63
64
c2 45
46
47
48
c1 29
30
31
32
c0
b3
b2
B13
14
15
16
28
24
b1
b0
a0
a1
a2
a3
20
44
40
36
60
56
52
May 5, 2015
44
May 5, 2015
45
Base table
Cust
C1
C2
C3
C4
C5
Index on Region
Index on Type
Region
Asia
Europe
Asia
America
Europe
May 5, 2015
46
May 5, 2015
47
May 5, 2015
48
Metadata Repository
Operational meta-data
Business data
May 5, 2015
49
Data extraction:
Data cleaning:
Load:
Data transformation:
Refresh
May 5, 2015
50
May 5, 2015
51
Discovery-Driven Exploration of
Data Cubes
May 5, 2015
52
May 5, 2015
53
Continuing the last example, among the max price tuples, find
the min and max shelf life, and find the fraction of the total sales
due to tuple that have min shelf life within the set of all max price
tuples
May 5, 2015
54
Information processing
Analytical processing
Data mining
May 5, 2015
55
Architecture of OLAM
May 5, 2015
56
An OLAM Architecture
Mining query
Mining result
Layer4
User Interface
OLAM
Engine
OLAP
Engine
Layer3
OLAP/OLAM
MDDB
Filtering&Integration
Database API
MDDB
Meta
Data
Filtering
Layer1
Databases
May 5, 2015
Data cleaning
Data
Data integration Warehouse
Data
Repository57
Summary
Data warehouse
May 5, 2015
58