Professional Documents
Culture Documents
Chapter 2
all
0-D(apex) cuboid
time,location,supplier
time,item,location 3-D cuboids
time,item,supplier item,location,supplier
4-D(base) cuboid
time, item, location, supplier
time
time_key item
day item_key
day_of_the_week Sales Fact Table item_name
month brand
quarter time_key type
year supplier_type
item_key
branch_key
branch location
location_key
branch_key location_key
branch_name units_sold street
branch_type city
dollars_sold state_or_province
country
Measures
January 8, 2020 DW/DM: DW & OLAP 6
-- Example of Snowflake Schema
time
time_key item
day item_key supplier
day_of_the_week Sales Fact Table item_name supplier_key
month brand supplier_type
quarter time_key type
year item_key supplier_key
branch_key
branch location
location_key
location_key
branch_key
units_sold street
branch_name
city_key
branch_type
dollars_sold city
city_key
city
state_or_province
Measures country
January 8, 2020 DW/DM: DW & OLAP 7
-- Example of Fact Constellation
Shipping Fact Table
time item
time_key item_key time_key
day Sales Fact Table item_name
day_of_the_week brand item_key
month time_key type shipper_key
quarter supplier_type
year item_key from_location
branch_key
to_location
branch location_key location riyals_cost
branch_key location_key
branch_name
units_sold units_shipped
street
branch_type riyals_sold city
province_or_state shipper
country
shipper_key
Measures shipper_name
location_key
shipper_type
January 8, 2020 DW/DM: DW & OLAP 8
-- A Concept Hierarchy: Dimension (location)
all all
Office Day
Month
January 8, 2020 DW/DM: DW & OLAP 10
--- A Sample Data Cube
Country
sum
Canada
Mexico
sum
all
0-D(apex) cuboid
product date country
1-D cuboids
3-D(base) cuboid
product, date, country
Visualization
OLAP capabilities
Interactive manipulation
Pivot (rotate):
reorient the cube, visualization, 3D to series of 2D planes
Monitor
& OLAP Server
Other Metadata Analysis
sources Integrator Query
Reports
Operational Extract Data mining
DBs Transform Data Serve
Load
Refresh
Warehouse
200 150-200
150 100-150
100 50-100
50 0-50
0 Blue
1990
1991 Red
1992
ALL
Data Marts
Choose the dimensions that will apply to each fact table record
Choose the measure that will populate each fact table record
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
Virtual warehouse
A set of views over operational databases
Multi-Tier Data
Warehouse
Distributed
Data Marts
Enterprise
Data Data
Data
Mart Mart
Warehouse
Data extraction
get data from multiple, heterogeneous, and external sources
Data cleaning
detect errors in the data and rectify them when possible
Data transformation
convert data from legacy or host format to warehouse format
Load
sort, summarize, consolidate, compute views, check integrity, and
build indices and partitions
Refresh
propagate the updates from the data sources to the warehouse
Business data
business terms and definitions,
ownership of data
charging policies
January 8, 2020 DW/DM: DW & OLAP 23
-- OLAP Server Architectures