+ All Categories
Home > Documents > Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued...

Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued...

Date post: 19-Mar-2021
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
62
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel
Transcript
Page 1: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

4

1

Chapter 4

Entity Relationship (ER) Modeling

Database Systems:Design, Implementation, and Management,

Sixth Edition, Rob and Coronel

Page 2: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

2

In this chapter, you will learn:

•How relationships between entities aredefined and refined, and how suchrelationships are incorporated into thedatabase design process

•How ERD components affect databasedesign and implementation

•How to interpret the modeling symbols for thefour most popular ER modeling tools

•That real-world database design oftenrequires that you reconcile conflicting goals

Page 3: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

3

The Entity Relationship (ER) Model

•ER model forms the basis of an ER diagram

•ERD represents the conceptual database asviewed by end user

•ERDs depict the ER model’s three maincomponents:

–Entities

–Attributes

–Relationships

Page 4: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

4

Entities•Refers to the entity set and not to a single

entity occurrence

•Corresponds to a table and not to a row in therelational environment

•In both the Chen and Crow’s Foot models, anentity is represented by a rectanglecontaining the entity’s name

•Entity name, a noun, is usually written incapital letters

Page 5: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

5

Attributes

•Characteristics of entities

•In Chen model, attributes are represented byovals and are connected to the entityrectangle with a line

•Each oval contains the name of the attribute itrepresents

•In the Crow’s Foot model, the attributes aresimply written in the attribute box below theentity rectangle

Page 6: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

6

The Attributes of the STUDENT Entity

Page 7: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

7

Domains

•Attributes have a domain:

–The attribute’s set of possible values

•Attributes may share a domain

Page 8: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

8

Primary Keys

•Underlined in the ER diagram

•Key attributes are also underlined infrequently used table structure shorthand

•Ideally composed of only a single attribute

•Possible to use a composite key:

–Primary key composed of more than oneattribute

Page 9: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

9

The CLASS Table (Entity)Components and Contents

Page 10: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

10

Attributes

•Composite attribute

•Simple attribute

•Single-value attribute

•Multivalued attributes

Page 11: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

11

A Multivalued Attribute in an Entity

Page 12: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

12

Resolving Multivalued Attribute Problems

•Although the conceptual model can handlemultivalued attributes, you should notimplement them in the relational DBMS

–Within original entity, create several newattributes, one for each of the originalmultivalued attribute’s components

•Can lead to major structural problems in the table

–Create a new entity composed of originalmultivalued attribute’s components

Page 13: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

13

Splitting the MultivaluedAttribute into New Attributes

Page 14: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

14

Components of the Multivalued Attribute

Page 15: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

15

A New Entity Set Composed of aMultivalued Attribute’s Components

Page 16: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

16

Derived Attributes

•Attribute whose value may be calculated(derived) from other attributes

•Need not be physically stored within thedatabase

•Can be derived by using an algorithm

Page 17: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

17

Depiction of a Derived Attribute

Page 18: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

18

Relationships

•Association between entities

•Participants:

–Entities that participate in a relationship

•Relationships between entities alwaysoperate in both directions

•Relationship can be classified as 1:M

•Relationship classification is difficult toestablish if you only know one side

Page 19: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

19

Connectivity and Cardinality

•Connectivity

–Used to describe the relationship classification

•Cardinality

–Expresses the specific number of entityoccurrences associated with one occurrenceof the related entity

•Established by very concise statementsknown as business rules

Page 20: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

20

Connectivity and Cardinality in an ERD

Page 21: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

21

RELATIONSHIP Strength

•Existence dependence–Entity’s existence depends on the existence of

one or more other entities•Existence independence

–Entity can exist apart from one or more relatedentities

•Weak (non-identifying) relationships–One entity is not existence-independent on

another entity•Strong (Identifying) Relationships

–Related entities are existence-dependent

Page 22: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

22

A Weak (Non-Identifying) RelationshipBetween COURSE and CLASS

Page 23: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

23

A Weak RelationshipBetween COURSE and CLASS

Page 24: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

24

Relationship Participation

•Optional:

–One entity occurrence does not require acorresponding entity occurrence in a particularrelationship

•Mandatory:

–One entity occurrence requires acorresponding entity occurrence in a particularrelationship

Page 25: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

25

A Strong (Identifying) RelationshipBetween COURSE and CLASS

Page 26: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

26

An Optional CLASS Entity in the RelationshipPROFESSOR teaches CLASS

Page 27: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

27

COURSE and CLASSin a Mandatory Relationship

Page 28: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

28

Relationship Strength and Weak Entities

•Weak entity meets two conditions–Existence-dependent:

•Cannot exist without entity with which it has arelationship

–Has primary key that is partially or totallyderived from the parent entity in therelationship

•Database designer usually determineswhether an entity can be described as weakbased on the business rules

Page 29: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

29

A Weak Entity in an ERD

Page 30: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

30

A Weak Entity in a Strong Relationship

Page 31: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

31

Relationship Degree

•Indicates number of associated entities orparticipants

•Unary relationship

–Association is maintained within a single entity

•Binary relationship

–Two entities are associated

•Ternary relationship

–Three entities are associated

Page 32: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

32

Three Types of Relationships

Page 33: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

33

The Implementationof a Ternary Relationship

Page 34: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

34

Recursive Relationships

•Relationship can exist between occurrencesof the same entity set

•Naturally found within a unary relationship

Page 35: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

35

An ER Representationof Recursive Relationships

Page 36: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

36

The 1:1 Recursive Relationship“EMPLOYEE is Married to EMPLOYEE”

Page 37: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

37

Implementation of the M:N Recursive“PART Contains PART”Relationship

Page 38: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

38

Implementation of the 1:M “EMPLOYEEManages EMPLOYEE”Recursive Relationship

Page 39: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

39

Composite Entities

•Also known as bridge entities

•Composed of the primary keys of each of theentities to be connected

•May also contain additional attributes thatplay no role in the connective process

Page 40: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

40

Converting the M:N Relationshipinto Two 1:M Relationships

Page 41: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

41

The M:N RelationshipBetween STUDENT and CLASS

Page 42: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

42

A Composite Entity in an ERD

Page 43: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

43

Entity Supertypes and Subtypes

•Generalization hierarchy

–Depicts a relationship between a higher-levelsupertype entity and a lower-level subtypeentity

•Supertype entity

–Contains shared attributes

•Subtype entity

–Contains unique attributes

Page 44: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

44

Nulls Created by Unique Attributes

Page 45: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

45

A Generalization Hierarchy

Page 46: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

46

Disjoint Subtypes

•Also known as non-overlapping subtypes

–Subtypes that contain a subset of thesupertype entity set

–Each entity instance (row) of the supertypecan appear in only one of the disjoint subtypes

•Supertype and its subtype(s) maintain a 1:1relationship

Page 47: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

47

The EMPLOYEE/PILOTSupertype/Subtype Relationship

Page 48: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

48

A Generalization Hierarchywith Overlapping Subtypes

Page 49: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

49

A Comparison of ER Modeling Symbols

Page 50: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

50

The Chen Representationof the Invoicing Problem

Page 51: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

51

The Crow’s Foot Representationof the Invoicing Problem

Page 52: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

52

The Rein85 Representationof the Invoicing Problem

Page 53: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

53

The IDEF1X Representationof the Invoicing Problem

Page 54: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

54

Developing an ER Diagram

•Database design is an iterative rather than alinear or sequential process

•Iterative process

–Based on repetition of processes andprocedures

Page 55: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

55

A Supertype/Subtype Relationship

Page 56: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

56

A Supertype/Subtype Relationshipin an ERD

Page 57: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

57

Components of the ER Model

Page 58: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

58

The Completed Tiny College ERD

Page 59: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

59

The Challenge of Database Design:Conflicting Goals

•Database design must conform to designstandards

•High processing speeds are often a toppriority in database design

•Quest for timely information might be thefocus of database design

Page 60: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

60

Various Implementationsof a 1:1 Recursive Relationship

Page 61: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

61

Summary

•Entity relationship (ER) model–Uses ER diagrams to represent conceptual

database as viewed by the end user–Three main components

•Entities•Relationships•Attributes

–Includes connectivity and cardinality notations

•Connectivities and cardinalities are based onbusiness rules

Page 62: Chapter 4140.118.48.162/gjhwang/IMDB-chapter04.pdf · 2020. 10. 7. · 4 12 Resolving Multivalued Attribute Problems •Although the conceptual model can handle multivalued attributes,

Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel

4

62

Summary (continued)

•ER symbols are used to graphically depict theER model’s components and relationships

•ERDs may be based on many different ERmodels

•Entities can also be classified as supertypesand subtypes within a generalizationhierarchy

•Database designers are often forced to makedesign compromises


Recommended