Documente Academic
Documente Profesional
Documente Cultură
Modeling
Design Requirements
3
ER Modeling
7
Dimension Modeling Concepts
n Components of DM:
Ø Fact Tables
Ø Dimension Tables
8
Inside Dimension table
9
Inside Fact Table
10
Factless Fact Table
11
Star Schema keys
n Primary keys
n Surrogate keys
n Foreign keys
12
Modeling Design Process
1.Identify the Business Process
n Source of “measurements”
2.Identify the Grain
n What does 1 row in the fact table represent
or mean?
3.Identify the Dimensions
n Descriptive context, true to the grain
4.Identify the Facts
n Numeric additive measurements, true to
the grain
Step 1 - Identify the Business
Process
18
DM:Advanced Topics
20
n Large Dimensions
n Rapidly changing dimensions
21
Snowflake Schema
Disadvantage:
complexity
n Ability to browse through the contents difficult
22
Star Schema
23
Flattened Star
24
Normalized Star
Ease of Use: More complex queries and Less no. of foreign keys and
hence less easy to hence lesser query execution
understand time
Query Performance: More foreign keys-and hence Less no. of foreign keys and
more query execution time hence lesser query execution
time
Ease of maintenance/change: No redundancy and hence Has redundant data and
more easy to maintain and hence less easy to
change maintain/change
Type of Data warehouse: Good to use for small data Good for large data warehouses
warehouses/datamarts
Dimension table: It may have more than one Contains only single
dimension table for each dimension table for each
dimension dimension
27
Fact Constellation schema
n It is shaped like constellation of stars
n For each star schema or snowflake schema it is possible to
construct a fact constellation schema
n This schema is more complex than star or snowflake architecture,
which is because it contains multiple fact tables
n allows dimension tables to be shared amongst many fact tables.
n solution is very flexible, however it may be hard to manage and
support.
n The main disadvantage of the fact constellation schema is a more
complicated design because many variants of aggregation
must be considered
n Different fact tables are explicitly assigned to the dimensions,
which are for given facts relevant. This may be useful in cases
when some facts are associated with a given dimension level
and other facts with a deeper dimension level.
28
Dimensional Model Star Schema
29
Snow-Flake Schema in Dimensional Modeling
30
Fact Constellation Schema
31