Chapter 2
Chapter 2
(partial,exclusive) Teaches
(1,1) (0,n)
(0,n) (0,n)
Assistant Professor Section Prerequisite
Thesis title Status Semester Has prereq Is a prereq
Thesis description Tenure date (0,1) Year
/No courses Homepage (0,1) Course
(1,1)
(1,1) (0,n) Course id
(1,n)
Advisor CouSec Course name
Level
Simple attribute
(0,1) Complex attribute
Professor Teaches role name Attribute 1
(1,1)
Attribute 2
Identifier (1,1) (0,n) Optional att. (0,1)
Attributes
Other attributes (1,n) Multivalued attr. (1,n)
Section
(total,exclusive)
CouSec (partial,exclusive)
Partial Identifier
Other Attributes (total,overlapping)
(partial,overlapping)
Identifying
Weak Entity Type Relationship Type Generalization Generalization types
previous rules
Identifier if any is the key of the relation, but the
combination
Academic staff ofParticipates
all role identifiersProject
can be used as a key
Participates
(0,n) (1,n)
Employee no Start date Project id Employee no
... End date ... Project id
Start date
End date
Employee no Employee no
Name Name
... ...
Assistant Professor
Assistant Professor
Employee no Employee no
Thesis title Status Thesis title Status
... ... ... ...
Employee no
Name
…
Thesis title (0,1)
...
Status
...
values
Q2 27 14 11 30
dimensions
Q3 26 12 35 32
Q4 14 20 47 31
games DVDs
books CDs
Product (Category)
Copyright © 2008 Elzbieta Malinowski & Esteban Zimányi 51
Hierarchies
Data granularity: Level of detail of measures
Data analyzed at different granularities (abstraction
levels)
Hierarchies relate low-level (detailed) concepts to
higher-level (general concepts)
Example: Store – City – Region/Province – Country
Given two related levels in a hierarchy, lower level is
called child, higher level is called parent
Instances of these levels are called members
Ivanov Claus
Hallez Berger
Milan 24 18 28 14
Rome 33 25 23 25 Italy 57 43 51 39
Nice 12 20 24 33 France
Paris Q1 33 30 42 68
Time (Quarter)
Q1 21 10 18 35 Roll-up to the Country level
Time (Quarter)
Q2 27 14 11 30
Q2 27 14 11 30
Q3 26 12 35 32
Q3 26 12 35 32
Q4 14 20 47 31
Q4 14 20 47 31
games DVDs
games DVDs books CDs
books CDs Product (Category)
Product (Category)
Q1 21 10 18 35 Drill-down to Jan 7 2 6 13
Time (Quarter)
the
Time (Quarter)
Q2 27 14 11 30 Feb 8 4 8 12
Month level
Q3 26 12 35 32 Mar 6 4 4 10
Milan 24 18 28 14
Rome 33 25 23 25 DVDs 35 30 32 31
Nice 12 20 24 33 CDs 18 11 35 47
games 10 14 12 20
Paris
books
Q1 21 10 18 35
Time (Quarter)
Paris 21 27 26 14
Store (City)
Q2 27 14 11 30
Pivot Nice 12 14 11 13
Q3 26 12 35 32
Rome 33 28 35 32
Q4 14 20 47 31
Milan 24 23 25 18
games DVDs
Q1 Q2 Q3 Q4
books CDs
Product (Category) Time (Quarter)
Milan 24 18 28 14
Rome 33 25 23 25 Q1 21 10 18 35
Time (Quarter)
Nice 12 20 24 33
Paris Q2 27 14 11 30
Q1 21 10 18 35
Time (Quarter)
Q3 26 12 35 32
Q2 27 14 11 30 Slice on Store.City = ‘Paris’
Q4 14 20 47 31
Q3 26 12 35 32 games DVDs
Q4 14 20 47 31 books CDs
Product (Category)
games DVDs
books CDs
Product (Category)
Milan 24 18 28 14
Rome 33 25 23 25
Nice 12 20 24 33 Nice 12 20 24 33
Paris Paris
(Quarter)
Q1 21 10 18 35 Q1 21 10 18 35
Dice on Store.Country =
Time (Quarter)
Time
Q2 27 14 11 30 ‘France’ and Time.Quarter=
Q2 27 14 11 30
‘Q1’ or ‘Q2’
Q3 26 12 35 32 games DVDs
books CDs
Q4 14 20 47 31
Product (Category)
games DVDs
books CDs
Product (Category)
Product Store
Store
City State
Store key
Store number City key State key
Store name City name State name
Store address City population State population
Manager name City area State area
City fkey State fkey State major activity
... ... ...
Copyright © 2008 Elzbieta Malinowski & Esteban Zimányi 67
Logical DW Design: Constellation
Schemas
Promotion Sales Store
Enterprise Reporting
ETL OLAP tools
Operational data
process warehouse server
databases
Statistical
tools
External
sources Data marts
Data mining
tools