
Chapter 5
Presentation
•
Computers
•
University
•
Practice Problem
•
Medium
Sherif Abdelhamid
Used 7+ times
FREE Resource
18 Slides • 11 Questions
1
Database Processing: Fundamentals,
Design, and Implementation
Fifteenth Edition
Chapter 5
Data Modeling with the
Entity-Relationship Model
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Slides in this presentation contain hyperlinks.
JAWS users should be able to get a list of links by
using INSERT+F7
2
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Learning Objectives (1 of 2)
5.1 To understand the two-phase data modeling/database design process
5.2To understand the purpose of the data modeling process
5.3 To understand entity-relationship (E-R) diagrams
5.4To be able to determine entities, attributes, and relationships
5.5 To be able to create entity identifiers
5.6 To be able to determine minimum and maximum cardinalities
5.7To understand variations of the E-R model
5.8 To understand and be able to use ID-dependent and other weak
entities
5.9 To understand and be able to use supertype/subtype entities
5.10To understand and be able to use strong entity relationship patterns
3
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Learning Objectives (2 of 2)
5.11 To understand and be able to use the ID-dependent association
relationship pattern
5.12 To understand and be able to use the ID-dependent multivalued
attribute relationship pattern
5.13 To understand and be able to use the ID-dependent
archetype/instance relationship pattern.
5.14 To understand and be able to use the line-item pattern
5.15 To understand and be able to use the for-use-by subtype patterns
5.16 To understand and be able to use recursive relationship patterns
5.17 The understand the iterative nature of the data modeling process
5.18 To be able to apply the data modeling process
4
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
The Data Model
• A data model is a plan or blueprint for a database design.
• A data model is more generalized and abstract than a
database design.
• It is easier to change a data model then it is to change a
database design, so it is the appropriate place to work
through conceptual database problems.
5
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
The Data Model similar to…
Architecture model
Clay model
6
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Design Stages
– Conceptual design (conceptual schema)
– Logical design (logical schema)
– Physical design (physical schema)
• The Entity-Relationship (E-R) modelis a set of graphical
symbols that can be used to visually describe the design.
7
Multiple Choice
Does the conceptual model correspond to the data model?
True
False
8
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Design Stages
ERD feature
Conceptual
Logical
Physical
Entity/table (name)
Yes
Yes
Yes
Relationship
Yes
Yes
Yes
Column (attribute)
Yes
Yes
Column’s Type
Optional
Yes
Primary Key
Yes
Foreign Key
Yes
9
Multiple Choice
Does the conceptual model has information about the Primary and foreign key of each table/element?
True
False
10
Multiple Choice
This diagram best the describe the _____ model of the database.
Conceptual
Logical
Physical
11
Multiple Choice
This diagram best describe the ______model of the database.
Conceptual
Logical
Physical
12
Multiple Choice
This model is considered____
Conceptual
Logical
Physical
13
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
The Entity-Relationship (E-R) Model
• Versions:
– Original E-R model—by Peter Chen (1976)
– Extended E-R model—later extensions to the Chen
model included subtypes
– Now referred to as the extended E-R model, which is
used in this book when using the term E-R model
14
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
ERD diagrams track
• Entities: something that can be readily identified and that
users want to track
• Attributes describe an entity’s characteristics.
• Relationships between entities
– Max Cardinality
– One-to-One [1:1]
– One-to-Many [1:N]
– Many-to-Many [N:M]
– Min Cardinality
– zero [0] participation in the relationship by the
entity is optional.
– one [1] participation in the relationship by the
entity is mandatory.
15
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Types of Maximum Cardinality
16
Multiple Choice
If an employee can work at one company a time and the company can have many employees, then the relationship between entities employee and company is considered ____
1 to many
1 to 1
many to many
none of these
17
Multiple Choice
The relationship between the entities country and government is _________
one to many
one to one
many to many
none of these
18
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Types of Minimum Cardinality
19
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Combined cardinality
20
Multiple Choice
Based on this figure___
Employee might not necessary assigned to a department
Employee can be assigned to many departments at the same time
A department might have no employees
none of these
21
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Figure 5-2 Variations of Attributes with
E-R Models
22
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Figure 5-3 Entity Attribute Display in
Data Models
23
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Crow’s Foot Notation
IE Crow’s Foot Symbol Summary
Symbol
Meaning
Numeric Meaning
Two hash marks on the
relationship line
Mandatory–One
Exactly-One
A hash mark and a crow’s foot
on the relationship line
Mandatory–Many
One or More
A circle and a hash mark on the
relationship line
Optional–One
Zero or one
A circle and a crow’s foot on the
relationship line
Optional–Many
Zero or more
24
ERD Example
In a library system, Books are written by Authors, published by Publishers, and can be borrowed by
Members. Authors can write many Books, Publishers can publish many Books, and Members can borrow many Books. A Book can only have one Author, one Publisher, and be borrowed by multiple members (not at same time). Each publisher has an assigned salesperson who is dedicated to only one publisher.
25
Multiple Choice
To create an entity relationship diagram for this system, you would create how many entities/tables?
2
3
4
5
26
Multiple Choice
The relationship between the book and the publisher should be___
1 to 1
1 to M
M to M
No relation
27
Multiple Choice
The relationship between the salesperson and the publisher should be___
1 to 1
1 to M
M to M
no relation
28
Library ERD
29
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Copyright
This work is protected by United States copyright laws and is
provided solely for the use of instructors in teaching their
courses and assessing student learning. Dissemination or sale of
any part of this work (including on the World Wide Web) will
destroy the integrity of the work and is not permitted. The work
and materials from it should never be made available to students
except by instructors using the accompanying text in their
classes. All recipients of this work are expected to abide by these
restrictions and to honor the intended pedagogical purposes and
the needs of other instructors who rely on these materials.
Database Processing: Fundamentals,
Design, and Implementation
Fifteenth Edition
Chapter 5
Data Modeling with the
Entity-Relationship Model
Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved
Slides in this presentation contain hyperlinks.
JAWS users should be able to get a list of links by
using INSERT+F7
Show answer
Auto Play
Slide 1 / 29
SLIDE
Similar Resources on Wayground
21 questions
Cold War Intro
Presentation
•
KG
23 questions
CLOUD COMPUTING
Presentation
•
University
23 questions
Writing: Structure of a paragraph
Presentation
•
University
23 questions
Reported Speech
Presentation
•
University
21 questions
Activity
Presentation
•
University
26 questions
Big Data Analytics and Artificial Intelligence
Presentation
•
University
21 questions
Best Method: Solving Systems of Equations
Presentation
•
7th - 10th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University