Professional Documents
Culture Documents
Office Day
Country
sum
Canada
Mexico
sum
branch_key
branch location
location_key
location_key
branch_key
units_sold street
branch_name
city_key
branch_type
dollars_sold city
city_key
avg_sales city
state_or_province
Measures country
SCCS 453 DW and DM Songsri Tangsripairoj, Ph.D. 28
Semester 2, Year 2006
Snowflake Schema
p The dimension tables of the snowflake model
may be kept in normalized form to reduce
redundancies.
p The snowflake structure can reduce the
effectiveness of browsing, since more joins will
be needed to execute a query.
p Although the snowflake schema reduces
redundancy, it is not as popular as the star
schema in the data warehouse design.
SCCS 453 DW and DM Songsri Tangsripairoj, Ph.D. 29
Semester 2, Year 2006
Example of Fact Constellation
time
time_key item Shipping Fact Table
day item_key
day_of_the_week Sales Fact Table item_name time_key
month brand
quarter time_key type item_key
year supplier_type shipper_key
item_key
branch_key from_location
Drill_down
…
Roll_up
Time
New York 81 107 35 67 Q2 38 107 145 145
(quarters)
USA
on Canada 2000
time (quarters)
Vancouver
ca i
lo at
oc
time
Q1 605 Q1 1000
l
Q2 Q2
computer
home
entertainment
Typical OLAP Operations Q3
Q4
item (types)
computer security
home phone
dice for entertainment
(location = “Toronto” or “Vancouver”) item (types)
and (time = “Q1” or “Q2”) and
(item = “home entertainment” or “computer”)
roll-up
on location
(from cities
s) to countries)
ie
it
(c
on New Chicago 440
a ti York 1560
o c Toronto 395
time (quarters)
l Vancouver
Q1 605 825 14 400
Q2
Q3
Q4
slice
computer security
for time = “Q1”
home phone
entertainment
location (cities)
drill-down
item (types) on time
(from quarters
Chicago to months)
New York
Toronto
s)
t ie
Vancouver 605 825 14 400
( ciChicago
n New York
computer security
t io
Toronto
home phone ca
entertainment lo Vancouver
item (types) January 150
February 100
March 150
time (months)
pivot April
May
June
July
item (types)
home
entertainment 605 August
September
computer 825
October
phone 14 November
December
400
SCCS DM453 DW and
security Songsri Tangsripairoj, Ph.D. 38
computer security
Semester 2, Year 2006 New York Vancouver home phone
Chicago Toronto entertainment
location (cities) item (types)
Other OLAP Operations
p Drill across: involving (across) more than one fact
table
p Drill through: through the bottom level of the cube
to its back-end relational tables (using SQL)