Search Header Logo
Chapter 5

Chapter 5

Assessment

Presentation

Computers

University

Practice Problem

Medium

Created by

Sherif Abdelhamid

Used 7+ times

FREE Resource

18 Slides • 11 Questions

1

media
media
media

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

media
media

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

media
media

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

media

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

media
media
media
media

Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved

The Data Model similar to…

Architecture model

Clay model

6

media
media

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?

1

True

2

False

8

media
media

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?

1

True

2

False

10

Multiple Choice

Question image

This diagram best the describe the _____ model of the database.

1

Conceptual

2

Logical

3

Physical

11

Multiple Choice

Question image

This diagram best describe the ______model of the database.

1

Conceptual

2

Logical

3

Physical

12

Multiple Choice

Question image

This model is considered____

1

Conceptual

2

Logical

3

Physical

13

media
media

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

media
media

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

media
media
media

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

1 to many

2

1 to 1

3

many to many

4

none of these

17

Multiple Choice

The relationship between the entities country and government is _________

1

one to many

2

one to one

3

many to many

4

none of these

18

media
media
media

Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved

Types of Minimum Cardinality

19

media
media
media

Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved

Combined cardinality

20

Multiple Choice

Question image

Based on this figure___

1

Employee might not necessary assigned to a department

2

Employee can be assigned to many departments at the same time

3

A department might have no employees

4

none of these

21

media
media
media

Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved

Figure 5-2 Variations of Attributes with
E-R Models

22

media
media
media

Copyright © 2019, 2016, 2014 Pearson Education, Inc. All Rights Reserved

Figure 5-3 Entity Attribute Display in
Data Models

23

media
media
media
media
media
media

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?

1

2

2

3

3

4

4

5

26

Multiple Choice

The relationship between the book and the publisher should be___

1

1 to 1

2

1 to M

3

M to M

4

No relation

27

Multiple Choice

The relationship between the salesperson and the publisher should be___

1

1 to 1

2

1 to M

3

M to M

4

no relation

28

media

Library ERD

29

media
media
media

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.

media
media
media

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