Chapter 6. Data Modeling
Chapter 6. Data Modeling
Chapter 6. Data Modeling
Cycle
6-1
Chapter 6 Outline
6-2
INTRODUCTION
6-4
THE ENTITY-RELATIONSHIP DIAGRAM (ERD)
6-5
Reading an Entity Relationship Diagram
6-6
Elements of an Entity Relationship Diagram
6-7
Entity
6-8
(cont’d)
6-9
Attributes
6-11
Relationships
6-12
Cardinality
6-14
Modality
6-15
The Data Dictionary and Metadata
6-16
(cont’d)
6-17
(cont’d)
6-18
(cont’d)
6-19
(cont’d)
6-20
CREATING AN ENTITY RELATIONSHIP
DIAGRAM (ERD)
Drawing the ERD is an iterative process of trial and revision.
The basic steps in building an ERD:
1. Identify the entities;
2. add the appropriate attributes to each entity; and
3. draw relationships among entities.
6-21
Step 1: Identify the Entities
6-24
Advanced Syntax
6-25
(cont’d)
Dependent Entity
There are situations when a child entity does
require attributes from the parent entity to
uniquely identify an instance. In these cases, the
child entity is called a dependent entity, and its
identifier consists of at least one attributes from
the parent entity.
(E.g., the Chemical Request entity in Figure 6.1).
6-26
(cont’d)
Intersection Entity
It exists in order to capture some
information about the relationship between
two other entities. Typically, intersection
entities are added to a data model to store
information about two entities sharing an
M : N relationship.
6-27
(cont’d)
6-28
(cont’d)
6-29
VALIDATING AN ERD
6-30
Design Guidelines
6-31
Normalization
6-32
(cont’d)
Normalization Steps
6-33
Balancing ERDs with DFDs
6-35
(cont’d)
6-36
SUMMARY