Module 4 Lecture
Module 4 Lecture
Ninth Edition
Chapter 4
Data Modeling and the Entity-
Relationship Model
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Learning Objectives (1 of 2)
2
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Learning Objectives (2 of 2)
3
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Data and Information
4
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
What is an Information System?
5
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.1 The Five-Component
6
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.2 A Generalized Business
7
Process
A business process is a set of activities that transform input into
outputs
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.3 The Manufacturing
8
Process
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.4 The Manufacturing
9
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Systems Analysis and Design
10
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.5 The SDLC in Use
11
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
The System Definition Step
12
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
The System Maintenance Step
17
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
What are the Steps in the Database
18
Development Process?
Learn the basic stages of database
development
• The database development process is a subset of the SDLC
that consists of three major stages:
1. Requirements analysis
2. Component design
3. Implementation
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.7 Sources of Requirements
19
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
The Entity-Relationship Data Model
20
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Entities
21
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.8 The ITEM Entity and Two
22
Entity Instances
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Attributes
23
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Identifiers
24
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.9 Levels of Entity Attribute
25
Display
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Relationships
26
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.10 Example Relationships
27
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.11 Three Types of Binary
28
Relationships
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Maximum Cardinality (1 of 2)
29
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Maximum Cardinality (2 of 2)
30
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.12 A Relationship with
31
Minimum Cardinalities
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
HAS-A Relationships
32
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Variations of the E-R Model
33
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.13 Two Versions of a 1:N
34
O-M Relationship
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.14 Crow’s Foot Notation
35
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.15 Two Versions of a N:M
36
O-M Relationship
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Weak Entities
37
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
ID-Dependent Weak Entities
38
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Weak Entity Relationships
39
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.16 Example ID-Dependent
40
Entities
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Non-ID-Dependent Weak Entities
41
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.17 Weak Entity Examples
42
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.18 Examples of Required
43
Entities
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Associative Entities
44
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.19 The Associative Entity
45
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Subtype Entities
46
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.20 Example Subtype Entities
47
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Subtype Entity Identifiers
48
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.21 Example Recursive
49
Relationship
Know how to represent recursive relationships
with the E-R model
• It is possible for an entity to have a relationship to itself—this is
called a recursive relationship (also known as a unary
relationship)
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Developing an Example E-R Diagram
50
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.22 Example Seminar
51
Customer List
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Heather Sweeney Design Fact
52
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.23 Initial E-R Diagram for
53
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.24 Heather Sweeney
54
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
55
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 4.26 Heather Sweeney
56
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
57
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Validating the Data Model
58
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Copyright
59
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved