Professional Documents
Culture Documents
Dimensional Modeling: E-BIZ Practice Tata Consultancy Services, India
Dimensional Modeling: E-BIZ Practice Tata Consultancy Services, India
E-BIZ Practice
Tata Consultancy Services, India
What is a Dimension?
What is a Fact?
n
latio
Continent Level
Re
State Level FL GA VA CA WA
•TYPE I
•TYPE II
•TYPE III
Slowly Changing Dimensions Type I
Shane@xyz.
1001 Shane Shane@ 1001 Shane Shane@ com
abc.co.in abc.co.in
Slowly Changing Dimensions Type II
Source Target
10 Shane shane@xyz.com
10 Shane shane@abc.co.in
Source
Target
Emp Id Name Email
10 Shane shane@abc.com
Source
Target
Slowly Changing Dimensions Type II - Flag
Source
Emp Id Name Email
10 Shane Shane@xyz.com
Current_Fla
Primary_Key Emp Id Name Email g
Shane@xyz.co
1000 10 Shane m Y
Target
Slowly Changing Dimensions Type II (Flag)
10 Shane shane@abc.co.in
Source
Target
Emp Id Name Email
10 Shane shane@abc.com
Source
Target
Slowly Changing Dimensions Type II – Effective Date
Source
Target
Slowly Changing Dimensions Type II – Effective Date
Source
Shane@abc.co.i
1000 10 Shane n 03/01/06
Target
Slowly Changing Dimensions Type II – Effective Date
Source
Shane@abc.co.i
1001 10 Shane n 03/01/06 05/01/06
Target
Slowly Changing Dimensions Type III
Source
Emp Id Name Email
10 Shane Shane@xyz.com
Effective
Primary Key Emp Id Name Email Prev Col name date
Shane@xyz.co
1000 16 Shane m 01/01/06
Target
Slowly Changing Dimensions Type III
Source
Emp Id Name Email
10 Shane Shane@abc.co.in
Target
Slowly Changing Dimensions Type III
Source
Emp Id Name Email
10 Shane Shane@abc.com
Target
What is a Fact?
Fact Measure
Store
Product
Sales_Amount
• Transaction Tables
• Snapshot Tables
• Summary Tables
Conformed Dimensions
Customer
Contd.
Dimensional Modeling
STEP 2
• Identify the Facts
• Group the Facts in a logical set
Financial Non-Financial
Transactions Transactions
Trans. Amount No. of Cheques Cleared
No. of Bonds No. of Visits to a Branch
No. of Transactions No. of DEMAT Transactions
Service Cost
... ...
Contd.
Dimensional Modeling
STEP 3
• Link the Group of Facts to the Dimensions that
participate in the Facts
Customer Product
Channel
Dimensional Modeling
STEP 4
• Define Granularity for each Group of Facts
Customer Product
(Customer) (Scheme)
Channel
(Channel)
Data Warehouse Schemas
Star Schema
• A Group of Facts connected to Multiple Dimensions
Channel
Customer Product
Contd.
Data Warehouse Schemas
Time Product
Financial Organization
Channel
Transactions
Customer
Segment Geography
Contd.
Data Warehouse Schemas
Galaxy Schema
• Multiple Groups of Facts links by few common
dimensions
Dimension1 Dimension2
Fact1
Dimension3 Dimension4
Dimension6 Dimension7
QUESTIONS ???