Dimensional Modeling in Data Warehousing
Dimensional Modeling in Data Warehousing
Dimensional Modeling in Data Warehousing
WAREHOUSING
By Chiradip Bhattacharya
CSE, A,13000216109
1
What is Dimensional Modeling?
3
Entity-Relationship (ER) vs Dimensional
Modeling (DM)
ER DM
Data is de normalized and used in data
Data is normalized and used for OLTP and
warehouse and data mart and is
is optimized for OLTP processing
optimized for OLAP
Tables are units of storage Data Cubes are units of storage
Several tables and chains of relationships Few tables and fact tables are connected
among them to dimensional tables
Volatile (several updates) and time variant Non volatile and time invariant
User friendly, interactive, drag and drop
Normal Reports
multidimensional OLAP Reports
Optimized for updation Optimized for retrieval
Minimize data redundancy Maximize understandability
4
Why ER is not suitable for Data Warehouses?
End client cannot comprehend, recollect or explore an ER
Model.
6
Components of Dimensional Modeling
a) Fact
Facts are the measurements/metrics or facts from your business
process.
b) Dimension
Dimension provides the context surrounding a business process
event. In simple terms, they give who, what, where of a fact. A
dimension is a window to view information in the facts.
c) Attribute
The Attributes are the various characteristics of the dimension.
Attributes are used to search, filter, or classify facts. Dimension
Tables contain Attributes.
7
Components of Dimensional Modeling
(continued)
e) Fact Table
The fact table contains the names of the facts, or measure, as well
as keys to each of the related dimension table. It can also be
defined as the place where numerical measures about business
data are stored.
Contains two or more foreign keys and tend to have huge numbers
of records.
The foreign keys column allows joins with dimension tables, and the
measures columns contain the data that is being analyzed.
8
Components of Dimensional Modeling
(continued)
f) Dimension Table
A dimension table allows keeping records of the dimensions.
Dimension table consist of the textual description of dimension of
the table.
9
Components of Dimensional Modeling
(continued)
Facts and Dimensions
10
Dimensional Modeling Life Cycle
Various phases which are involved in dimension modeling are as
follows –
a) Requirements gathering
It is the process of selecting the business processes for which the
dimension modeling has to done according to which requirement
are gathered and documented.
12
Multi-Dimensional Data Model Schema
a) Star Schema
The center of the star consists of fact table and the points of the
star are the dimension tables
13
Multi-Dimensional Data Model Schema
(continued)
Star Schema Example
Star schema for college database
14
Multi-Dimensional Data Model Schema
(continued)
b) Snowflake Schema
The snowflake effect affects only the dimension tables and does not
affect the fact tables.
15
Multi-Dimensional Data Model Schema
(continued)
Snowflake Schema Example
Snowflake schema for college database
16
Multi-Dimensional Data Model Schema
(continued)
c) Fact Constellation Schema
17
Multi-Dimensional Data Model Schema
(continued)
Fact Constellation Schema Example
Fact Constellation schema for college database
18
Advantages of Dimensional Modeling
Predictable, standard framework.
20
Conclusions
Dimensional modeling is one of the most popular and effective
techniques used in Data Warehousing.
21
References
• Surajit Chaudhuri Umeshwar Dayal Appears in ACM Sigmod Record, March 1997
“An Overview of Data Warehousing and OLAP Technology”.
• Chuck Ballard, Dirk Herreman, Don Schau, Rhonda Bell, Eunsaeng Kim, Ann
Valencic. “Data Modeling Techniques for Data Warehousing”.
• Dimension Modelling Techniques in Business Intelligence by Divya Sharma,
International Journal of Emerging Trends & Technology in Computer Science
(IJETTCS), Volume 3, Issue 6, November-December 2014
• Dimensional Modeling using Star Schema for Data Creation by Md. Mudasir
Kirmani, December 2017.
• Ballard, C. et. al. "Dimensional Modelling in business environment", IBM red books,
March 2006.
• https://en.wikipedia.org/wiki/Dimensional_modeling
• https://www.guru99.com/dimensional-model-data-warehouse.html
• https://www.redbooks.ibm.com/redbooks/pdfs/sg247138.pdf
• https://www.geeksforgeeks.org/dimensional-data-modeling
• https://www.slideshare.net/sunitasahu101/dimensional-modeling-53600268
22
THANK YOU
23