Top Banner
Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall
17

Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Jan 05, 2016

Download

Documents

Preston Andrews
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3The Entity-Relationship Model

David M. Kroenke

Database Processing

© 2000 Prentice Hall

Page 2: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3

© 2000 Prentice Hall

Data Modeling

Page 47

• Process of creating a logical representation of the structure of the database

• The most important task in database development

Page 3: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3

© 2000 Prentice Hall

Entity-Relationship Model

• E-R Model• Peter Chen, 1976

Page 49

Page 4: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Entities“something that users track”

Page 49Figure 3-1 © 2000 Prentice Hall

Page 5: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3

© 2000 Prentice Hall

Attributes (properties)

“describe the entity’s characteristics”

Entity: EmployeeAttributes:EmployeeName, Extension,

DateOfHire, JobSkillCode

Page 50

Page 6: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3

© 2000 Prentice Hall

Identifier

“attributes that name entity instances”

Entity: EmployeeIdentifier:SocialSecurityNumber

Page 50

Page 7: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Relationships“associations between entities”

Page 51Figure 3-3 © 2000 Prentice Hall

Page 8: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Cardinality

“maximum or minimum number of entities that can occur on one side of a relationship”

Page 52Figure 3-4 © 2000 Prentice Hall

Page 9: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Recursive relationships

“relationships among entities of a single class”

Page 53Figure 3-5 © 2000 Prentice Hall

Page 10: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

E-R Diagram

Page 54Figure 3-6a © 2000 Prentice Hall

Page 11: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

E-R Diagram

Page 54Figure 3-6b © 2000 Prentice Hall

Page 12: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3

© 2000 Prentice Hall

Weak Entities

“an entity whose presence in the database depends (logically) on another entity”

Page 54

Page 13: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Subtype Entities“an entity that contains option sets

of attributes”

Page 56Figure 3-10b © 2000 Prentice Hall

Page 14: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

E-R Diagram with all elements

Page 59Figure 3-11 © 2000 Prentice Hall

Page 15: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Chapter 3

© 2000 Prentice Hall

Drawing E-R diagrams

• IEW• IEF• DEFT• ER-WIN• Visio

Page 60

Page 16: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

Jefferson Dance Club

Page 62Figure 3-14 © 2000 Prentice Hall

Page 17: Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.

San Juan Charters

Page 66Figure 3-16 © 2000 Prentice Hall