Professional Documents
Culture Documents
Objectives
Definition of terms
Importance of data modeling
Write good names and definitions for entities,
relationships, and attributes
Distinguish unary, binary, and ternary relationships
Model different types of attributes, entities,
relationships, and cardinalities
Draw E-R diagrams for common business situations
Convert many-to-many relationships to associative
entities
Model time-dependent data using time stamps
Chapter 3
Project
Project Initiation
Initiation
and
and Planning
Planning
Analysis
Analysis
Logical Design
Physical Design
Database activity
conceptual data modeling
Implementation
Maintenance
Chapter 3
Business Rules
Chapter 3
Chapter 3
Chapter 3
Data Definitions
Chapter 3
Chapter 3
Chapter 3
Relationship symbols
Entity
symbols
Attribute
symbols
A special entity
that is also a
relationship
Relationship
degrees
specify number
of entity types
involved
Relationship
cardinalities
specify how
many of each
entity type is
allowed
Chapter 3
10
SHOULD BE:
Chapter 3
11
Figure 3-4
Inappropriate entities
System output
System user
Appropriate entities
Chapter 3
12
Attributes
Chapter 3
13
Identifiers (Keys)
Chapter 3
14
Characteristics of Identifiers
Chapter 3
15
An attribute
broken into
component parts
Chapter 3
16
Chapter 3
17
Chapter 3
18
Multivalued:
Derived
Chapter 3
19
This is an
example of
time-stamping
Chapter 3
20
More on Relationships
Chapter 3
21
Degree of Relationships
Degree
of a relationship is
the number of entity types
that participate in it
Unary
Relationship
Binary Relationship
Ternary Relationship
Chapter 3
22
One entity
related to
another of
the same
entity type
Chapter 3
Entities of
two different
types related
to each other
Entities of three
different types
related to each
other
23
Cardinality of Relationships
One-to-One
One-to-Many
Many-to-Many
Chapter 3
24
Cardinality Constraints
Maximum Cardinality
Chapter 3
25
Chapter 3
26
Chapter 3
27
28
Chapter 3
29
Figure 3-17c
Optional cardinalities with unary degree, one-to-one relationship
Chapter 3
30
Chapter 3
31
32
Chapter 3
33
34
Chapter 3
35
Here,max
cardinality
constraint is 4
Chapter 3
36
Chapter 3
37
Strong entities
Weak entity
Identifying relationship
Chapter 3
38
Strong entity
Chapter 3
Identifying relationship
Weak entity
39
Associative Entities
entity it has attributes
Its an
AND its a
Chapter 3
40
41
42
Chapter 3
43
Figure 3-22a
E-R diagram for Pine
Valley Furniture
Chapter 3
44
Microsoft Visio
Notation for Pine
Valley Furniture
Different modeling
software tools may
have different
notation for the same
constructs
Chapter 3
45