










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











1
2
4 Why ER Modeling has been so successful?
5
Lets have a look at a typical ER data model first. Some Observations: All tables look-alike, as a consequence it is difficult to identify: Which table is more important? Which is the largest? Which tables contain numerical measurements of the business? Which table contain nearly static descriptive attributes?
7
The Paradox: Trying to make information accessible using tables resulted in an inability to query them! ER and Normalization result in large number of tables which are: Hard to understand by the users (DB programmers) Hard to navigate optimally by DBMS software Real value of ER is in using tables individually or in pairs Too complex for queries that span multiple tables with a large number of records
8 ER vs. DM ER DM
10
support.
central fact table and a set of smaller dimensional tables.
11
All relationships mandatory M-1. Single path between any two levels.
13
Star Snow-flake
14 “Simplified” 3NF (Retail) CITY DISTRICT 1 ZONE CITY DISTRICT DIVISION MONTH QTR STORE # STREET ZONE ... WEEK MONTH DATE WEEK RECEIPT # STORE # DATE ... RECEIPT # ITEM # ... $ ITEM # CATEGORY ITEM # CATEGORY DEPT year month week sale_header store sale_detail item_x_cat item_x_splir cat_x_dept M 1 M M^1 1 M 1 1 M M 1 M M (^) M 1 1 M 1 1 M YEAR QTR 1 M quarter SUPPLIER M DIVISION PROVINCE 1 BACK division district zone
16
17 Features of Star Schema Dimensional hierarchies are collapsed into a single table for each dimension. Loss of Information? A single fact table created with a single header from the detail records, resulting in: A vastly simplified physical data model! Fewer tables (thousands of tables in some ERP systems). Fewer joins resulting in high performance. Some requirement of additional space.