



























































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!




























































Acknowledgements: I am indebted to Michael Böhlen and Stefano Rizzi for
providing me their slides, upon which these lecture notes are based.
Flexible
General
What is important
What just describes the important
50-1000 entities/relations/classes
Hard to get an overview
Normalized databases spread information
When analyzing data, the information must be
integrated/joined again
The DFM is a graphical conceptual model for data mart
design, devised to:
intuitively
with the goal of formalizing requirement specifications
target logical model )
The conceptual representation generated by the DFM
consists of a set of fact schemata that basically model facts,
measures, dimensions, and hierarchies
models a set of events taking place within a company (e.g., sales,
shipments, purchases, ...). It is essential that a fact have dynamic
properties or evolve in some way over time
quantitative fact aspect that is relevant to analysis (e.g., every sale is
quantified by its receipts)
analysis coordinate of the fact. Typical dimensions for the sales fact
are products, stores, and dates
dimension
measure
fact
A fact expresses a
many-to-many
relationship between its
dimensions
8
n-ple made up of a value for each dimension. A value for each
measure is associated with each primary event
In reference to the sales example, a possible primary event records that
10 packages of Shiny detergent were sold for total sales of $25 on
10/10/2008 in the SmartMart store
their values identifies a secondary event that aggregates all of the
corresponding primary events. Each secondary event is associated
with a value for each measure that sums up all the values of the
same measure in the corresponding primary events
This makes it possible to use hierarchies to define the way you can
aggregate primary events and effectively select them for decision-making
processes. While the dimension in which a hierarchy takes root defines its
finest aggregation granularity, the other dimensional attributes
correspond to a gradually increasing granularity
10
conceptual schema
workload
data volume
constraints
logical schema
Logical
Design
starting from a conceptual schema
Choice of the type of logical schema
Translation of conceptual schemata
Optimization (view materialization, fragmentation)
databases
data redundancy
denormalization of relations
model
Data analysis
Less flexible
Not suited for OLTP systems
What is important
What describes the important
What we want to optimize
Automatic aggregations means easy querying
Tools offer powerful query facilities based on MD design
5
More than 3 – the term ”hypercube” is sometimes used
Theoretically no limit for the number of dimensions
Typical cubes have 4-12 dimensions
Dimensionality reduced by queries via
projection/aggregation
A given combination of dimension values
A cell can be empty (no data for this combination)
A sparse cube has many empty cells
A dense cube has few empty cells
Cubes become sparser for many/large dimensions
12
DateKey Date DateFull DayOfWeek CalMonth CalYear Weekday
1 01/01/02 Januar 1, 2002 Tuesday January 2002 Weekday
2 01/02/02 Januar 2, 2002 Wednesday January 2002 Weekday
3 01/03/02 Januar 3, 2002 Thursday January 2002 Weekday
4 01/04/02 Januar 4, 2002 Friday January 2002 Weekend
5 01/05/02 Januar 5, 2002 Saturday January 2002 Weekend
Date
DateKey
Date
DateFull
DayOfWeek
CalMonth
CalYear
Holiday
Date
Other types of databases do not support dimensions
Selection of data
Grouping of data at the right level of detail
Product dimension has values ”milk”, ”cream”, …
Time dimension has values ”1/1/2001”, ”2/1/2001”,…
Used for comparing cube data across values
u e.g., percentage of sales increase compared with last month
Especially used for Time dimension
The ”important” in the business that should be analyzed
A fact is a non-empty cell
Some models give facts an explicit identity
Be attached to exactly one dimension value in each
dimension
Only be attached to dimension values in the bottom
levels
u e.g., if the lowest time granularity is day, for each fact the
exact day should be specified
u Some models do not require this