SlideShare a Scribd company logo
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 1
1
Database Systems:
Design,
Implementation,
and Management,
14e
Module 4: Entity Relationship
(ER) Modeling
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 2
Chapter Objectives
By the end of this chapter, you should be able to:
1. Identify the main characteristics of entity relationship components
2. Describe how relationships between entities are defined
3. Explain how ERD components affect database design and implementation
4. Describe how real-world database design often requires the reconciliation of conflicting goals
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 3
The Entity Relationship Model
• The entity relationship model (ERM) forms the basis of an ERD
− The ERD represents the conceptual database as viewed by the end user
• ERDs depict the database’s main components:
− Entities
− Attributes
− Relationships
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 4
Entities
• An entity is an object of interest to the end user
− An entity refers to the entity set and not to a single entity occurrence
• An entity in the ERM corresponds to a table—not to a row—in the relational environment
− ERM refers to a table row as an entity instance or entity occurrence
• In Chen, Crow’s Foot, and UML notations, an entity is represented by a rectangle that contains
the entity’s name
− The entity name, a noun, is usually written in all capital letters
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 5
Attributes (1 of 4)
• Attributes are characteristics of entities
• A required attribute is an attribute that must have a value and cannot be left empty
• An optional attribute does not require a value and can be left empty
• Attributes must have a domain, which is the set of possible values for a given attribute
• An identifier (Primary Keys) is one or more attributes that uniquely identify each entity instance
• A composite identifier is a primary key composed of more than one attribute
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 6
Attributes (2 of 4)
• A composite attribute is an attribute that can be subdivided to yield additional attributes (ADDRESS can be
subdivided into street, city, state, and zip code.)
• A simple attribute is an attribute that cannot be subdivided(age, sex, and marital status)
• A single-valued attribute is an attribute that has only a single value(a person can have only one Social Security
number, and a manufactured part can have only one serial number.)
• Multivalued attributes are attributes that have many values (a person may have several college degrees, and
a household may have several different phones)
• Implementing multivalued attributes
− Create several new attributes, one for each component of the original multivalued attribute
− Create a new entity composed of the original multivalued attribute’s components
• A derived attribute (computed attributes) is an attribute whose value is calculated from other
attributes (an employee’s age, EMP_AGE, may be found by computing the integer value of the
difference between the current date and the EMP_DOB)
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 7
Attributes (3 of 4)
• Figure 4.1 The Attributes of the STUDENT
Entity: Chen and Crow’s Foot
• Figure 4.3 A Multivalued Attribute in An Entity
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 8
Attributes (4 of 4)
• Figure 4.4 Splitting the Multivalued Attribute
into New Attributes
• Figure 4.6 Depiction of a Derived Attribute
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 9
Relationships
• The entities that participate in a relationship are also known as participants and each
relationship is identified by a name that describes the relationship
• The relationship name is an active or passive verb
• Relationships between entities always operate in both directions
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 10
Connectivity and Cardinality (1 of 2)
• Connectivity describes the relationship classification
− Includes 1:1, 1:M, and M:N
• Cardinality expresses the minimum and maximum number of entity occurrences associated with
one occurrence of the related entity
− In the ERD, cardinality is indicated by placing the appropriate numbers beside the entities,
using the format (x,y)
− The first value represents the minimum number of associated entities and the second value
represents the maximum number of associated entities
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 11
Connectivity and Cardinality (2 of 2)
Figure 4.7 Connectivity and
Cardinality in an ERD
A team must have a minimum of
five players—that is, a team will not
be created until at least five players
are ready to be assigned to a team.
A team can have a maximum of
eight players. A player can be
assigned to only one team.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 12
If the fewest rows that must be related is zero,
then participation is optional. If the fewest
rows that must be related is anything greater
than zero, then participation is mandatory.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 13
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 14
Existence Dependence
• An entity is said to be existence-dependent if it can exist in the database only when it is
associated with another related entity occurrence (“EMPLOYEE claims DEPENDENT”;
impossible for the dependent to exist apart from the EMPLOYEE in the database).
− An entity is existence-dependent if it has a mandatory foreign key
• If an entity can exist apart from all of its related entities, it is existence-independent
− It is referred to as a strong entity or regular entity
• E.g., some of product parts are produced in-house and other parts are bought from vendors;
PART is existence-independent from VENDOR)
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 15
Relationship Strength (1 of 3)
• Weak (Non-identifying) Relationships
− A weak relationship exists if the primary key of the related entity does not contain a primary
key component of the parent entity
 COURSE (CRS_CODE, DEPT_CODE, CRS_DESCRIPTION, CRS_CREDIT)
 CLASS (CLASS_CODE, CRS_CODE, CLASS_SECTION, CLASS_TIME, ROOM_CODE, PROF_NUM)
(The CLASS primary key did not inherit a primary key component from the COURSE entity)
• Strong (Identifying) Relationships
− A strong relationship exists when the primary key of the related entity contains a primary
key component of the parent entity
 COURSE (CRS_CODE, DEPT_CODE, CRS_DESCRIPTION, CRS_CREDIT)
 CLASS (CRS_CODE, CLASS_SECTION, CLASS_TIME, ROOM_CODE, PROF_NUM)
(The CLASS entity primary key is composed of CRS_CODE and CLASS_SECTION)
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 16
Relationship Strength (2 of 3)
Figure 4.9 A Weak (Non-Identifying)
Relationship Between COURSE and
CLASS
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 17
Relationship Strength (3 of 3)
Figure 4.10 A Strong (Identifying)
Relationship Between COURSE and
CLASS
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 18
Weak Entities (1 of 3)
• A weak entity is one that meets the following two conditions:
− The entity is existence-dependent
− The entity has a primary key that is partially or totally derived from parent entity in the
relationship
• The database designer usually determines whether an entity can be described as weak based
on business rules
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 19
Weak Entities (2 of 3)
Figure 4.11 A Weak Entity in an
ERD
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 20
Weak Entities (3 of 3)
Figure 4.12 A Weak Entity in a
Strong Relationship
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 21
Relationship Participation (1 of 3)
• Optional participation means that one entity occurrence does not require a corresponding
entity occurrence in a particular relationship
• For example, in the “COURSE generates CLASS” relationship, you noted that at least some
courses do not generate a class. Therefore, the CLASS entity is considered to be optional to the
COURSE entity. The existence of an optional entity indicates that its minimum cardinality is 0.
• Mandatory participation means that one entity occurrence requires a corresponding entity
occurrence in a particular relationship
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 22
Relationship Participation (2 of 3)
• Figure 4.13 An Optional CLASS Entity in the
Relationship “PROFESSOR teaches CLASS”
• Figure 4.14 CLASS is Optional to COURSE
It is quite possible for a PROFESSOR not to teach a CLASS. Therefore, CLASS is optional to PROFESSOR. On the other hand, a
CLASS must be taught by a PROFESSOR. Therefore, PROFESSOR is mandatory to CLASS.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 23
Relationship Participation (3 of 3)
Figure 4.15 COURSE and CLASS
in a Mandatory Relationship
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 24
Relationship Degree (1 of 3)
• A relationship degree indicates the number of entities or participants associated with a
relationship
• A unary relationship exists when an association is maintained within a single entity (an employee
within the EMPLOYEE entity is the manager for one or more employees within that entity; an EMPLOYEE may manage
many EMPLOYEEs, and each EMPLOYEE is managed by one EMPLOYEE.”)
• A binary relationship exists when two entities are associated
• A ternary relationship exists when three entities are associated
• A recursive relationship is a relationship within a single entity type
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 25
Relationship Degree (2
of 3)
Figure 4.16 Three Types of
Relationship Degree
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 26
Relationship Degree (3 of 3)
Figure 4.17 The Implementation of
a Ternary Relationship
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 27
Knowledge Check Activity 4-1
What two conditions must be met before an entity can be classified as a
weak entity?
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 28
Knowledge Check Activity 4-1: Answer
What two conditions must be met before an entity can be classified as a
weak entity?
• Answer: To be classified as a weak entity, two conditions must be met:
− The entity must be existence-dependent on its parent entity.
− The entity must inherit at least part of its primary key from its parent entity.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 29
Recursive Relationships (1 of 2)
• A recursive relationship can exist between occurrences of the same entity set
− Naturally, such a condition is found within a unary relationship
• One common pitfall when working with unary relationships is to confuse participation with
referential integrity
− Similar because they are both implemented through constraints on the same set of
attributes
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 30
Recursive Relationships (2 of 2)
• Figure 4.18 An ER Representation of Recursive Relationships
• Figure 4.19 The 1:1 Recursive Relationship “EMPLOYEE Is Married to
EMPLOYEE”
• Figure 4.20 Implementation of the 1:M Recursive Relationship
“EMPLOYEE manages EMPLOYEE”
You place the primary key of the entity into the entity a second time to act as the
foreign key. rename it: when EMP_NUM was placed into the EMPLOYEE entity a
second time to act as the foreign key, it was renamed to EMP_SPOUSE
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 31
Associative (Composite) Entities (1 of 2)
• The ER model uses the associative entity to represent an M:N relationship between two or more
entities
• It is also called a composite or bridge entity and is a 1:M relationship with the parent entities
− It is composed of the primary key attributes of each parent entity
• The composite entity may also contain additional attributes that play no role in connective
process
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 32
Associative (Composite) Entities (2 of 2)
Figure 4.26 A Composite Entity in
an ERD
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 33
Developing an ER Diagram (1 of 7)
• Building an ERD usually involves the following activities:
− Create a detailed narrative of the organization’s description of operations
− Identify business rules based on the description of operations
− Identify main entities and relationships from the business rules
− Develop the initial ERD
− Identify the attributes and primary keys that adequately describe entities
− Revise and review the ERD
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 34
Developing an ER Diagram
• 1.Tiny College (TC) is divided into several schools: business, arts and sciences, education, and
applied sciences. Each school is administered by a dean who is a professor. Each professor can
be the dean of only one school, and a professor is not required to be the dean of any school.
Therefore, a 1:1 relationship exists between PROFESSOR and SCHOOL. Note that the
cardinality can be expressed by writing (1,1) next to the entity PROFESSOR and (0,1) next to
the entity SCHOOL.
• 2.Each school comprises several departments. For example, the school of business has an
accounting department, a management/marketing department, an economics/finance
department, and a computer information systems department. Note again the cardinality rules:
The smallest number of departments operated by a school is one, and the largest number of
departments is indeterminate (N). On the other hand, each department belongs to only a single
school; thus, the cardinality is expressed by (1,1). That is, the minimum number of schools to
which a department belongs is one, as is the maximum number.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 35
Developing an ER Diagram (2 of 7)
• Figure 4.27 The First Tiny College ERD Segment
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 36
Each department may offer courses. For example, the management/marketing department offers courses such as
Introduction to Management, Principles of Marketing, and Production Management. The ERD segment for this
condition is shown in Figure 4.28. Note that this relationship is based on the way Tiny College operates. For
example, if Tiny College had some departments that were classified as “research only,” they would not offer
courses; therefore, the COURSE entity would be optional to the DEPARTMENT entity.
• Figure 4.28 The Second Tiny College ERD Segment
Developing an ER Diagram
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 37
A CLASS is a section of a COURSE. That is, a department may offer several sections (classes) of the same database
course. Each of those classes is taught by a professor at a given time in a given place. In short, a 1:M relationship
exists between COURSE and CLASS. Additionally, each class is offered during a given semester. SEMESTER defines
the year and the term that the class will be offered. Note that this is different from the date when the student
actually enrolls in a class.
Developing an ER Diagram
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 38
Developing an ER Diagram
• Figure 4.30 The Fourth Tiny College
ERD Segment
Each department should have one or more professors assigned to it. One
and only one of those professors chairs the department, and no professor is
required to accept the chair position. Therefore, DEPARTMENT is optional to
PROFESSOR in the “chairs” relationship.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 39
Developing an ER Diagram
• Figure 4.31 The Fifth Tiny College
ERD Segment
Each professor may teach up to four classes; each class is a section of a
course. A professor may also be on a research contract and teach no classes
at all.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 40
Developing an ER Diagram
• Figure 4.32 The Sixth Tiny College
ERD Segment
A student may enroll in several classes but take each class only once during any given enrollment period. For example,
during the current enrollment period, a student may decide to take five classes—Statistics, Accounting, English,
Database, and History—but that student would not be enrolled in the same Statistics class five times during the
enrollment period! Each student may enroll in up to six classes, and each class may have up to 35 students, thus creating
an M:N relationship between STUDENT and CLASS.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 41
Developing an ER Diagram (5 of 7)
Each department has several (or many) students whose major is offered by that
department. However, each student has only a single major and is therefore
associated with a single department
Each student has an advisor in his or her department; each advisor
counsels several students. An advisor is also a professor, but not all
professors advise students. Therefore, STUDENT is optional to
PROFESSOR in the “PROFESSOR advises STUDENT” relationship.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 42
Developing an ER Diagram (5 of 7)
The CLASS entity contains a ROOM_CODE attribute. Given the naming conventions, it is clear that ROOM_CODE
is an FK to another entity.
Clearly, because a class is taught in a room, it is reasonable to assume that the ROOM_CODE in CLASS is the FK
to an entity named ROOM. In turn, each room is located in a building.
So, the last Tiny College ERD is created by observing that a BUILDING can contain many ROOMs, but each
ROOM is found in a single BUILDING.
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 43
Developing an
ER Diagram
Figure 4.36 The Completed Tiny
College ERD
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 44
Developing an ER Diagram (7 of 7)
Table 4.4 Components of the ERM
Entity Relationship Connectivity Entity
SCHOOL operates 1:M DEPARTMENT
DEPARTMENT has 1:M STUDENT
DEPARTMENT employs 1:M PROFESSOR
DEPARTMENT offers 1:M COURSE
COURSE generates 1:M CLASS
SEMESTER includes 1:M CLASS
PROFESSOR is dean of 1:1 SCHOOL
PROFESSOR chairs 1:1 DEPARTMENT
PROFESSOR teaches 1:M CLASS
PROFESSOR advises 1:M STUDENT
STUDENT enrolls in M:N CLASS
BUILDING contains 1:M ROOM
ROOM is used for 1:M CLASS
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 45
Database Design Challenges: Conflicting
Goals (1 of 2)
• Database designers must often make design compromises that are triggered by conflicting goals
− Database design must conform to design standards
− High processing speed may limit the number and complexity of logically desirable
relationships
− Maximum information generation may lead to loss of clean design structures and high
transaction speed
• A design that meets all logical requirements and design conventions is an important goal
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 46
Database Design Challenges: Conflicting
Goals (2 of 2)
Figure 4.39 Various
Implementations of the 1:1 Recursive
Relationship
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 47
Knowledge Check Activity 4-2
• How is a relationship between entities indicated in an ERD?
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 48
Knowledge Check Activity 4-2: Answer
• How is a relationship between entities indicated in an ERD?
• Answer: A relationship is indicated by a line connecting the related entities.
STUDENT
STU_NUM (PK)
STU_LNAME
STU_FNAME
STU_INITIAL
DEPT_CODE (FK)
Simplified Crow’s Foot entity box
(no attribute component.)
STUDENT
Crow’s Foot entity box
(attribute component included.)
Crow’s Foot connectivity symbol,
implied (0,N) cardinality.
A weak relationship
A strong relationship
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights
Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 49
Summary
Now that the lesson has ended, you should be able to:
1. Identify the main characteristics of entity relationship components
2. Describe how relationships between entities are defined
3. Explain how ERD components affect database design and implementation
4. Describe how real-world database design often requires the reconciliation of conflicting goals

More Related Content

What's hot

introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
nehabsairam
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
Ankit Rai
 
MySQL Basics
MySQL BasicsMySQL Basics
MySQL Basics
mysql content
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship Model
Raj vardhan
 
Uddi
UddiUddi
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
saurabhshertukde
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Model
sontumax
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
Vibrant Technologies & Computers
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
Amin Choroomi
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
Raveena Thakur
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
Mustafa Kamel Mohammadi
 
Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207
Burhan Chaudhry
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
Saranya Natarajan
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
moni sindhu
 
Deployment Diagram
Deployment DiagramDeployment Diagram
Deployment Diagram
University of Texas at Dallas
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
Relational model
Relational modelRelational model
Relational model
Dabbal Singh Mahara
 
ER MODEL
ER MODELER MODEL
ER MODEL
Rupali Rana
 
Difference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellationDifference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellation
Asim Saif
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
Jafar Nesargi
 

What's hot (20)

introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
 
MySQL Basics
MySQL BasicsMySQL Basics
MySQL Basics
 
Chapter-3 Data Modeling Using the Entity-Relationship Model
Chapter-3  Data Modeling Using the Entity-Relationship ModelChapter-3  Data Modeling Using the Entity-Relationship Model
Chapter-3 Data Modeling Using the Entity-Relationship Model
 
Uddi
UddiUddi
Uddi
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Model
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207Ch01 database-conceptsppt4207
Ch01 database-conceptsppt4207
 
ER-Model-ER Diagram
ER-Model-ER DiagramER-Model-ER Diagram
ER-Model-ER Diagram
 
multi dimensional data model
multi dimensional data modelmulti dimensional data model
multi dimensional data model
 
Deployment Diagram
Deployment DiagramDeployment Diagram
Deployment Diagram
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
 
Relational model
Relational modelRelational model
Relational model
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
Difference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellationDifference between snowflake schema and fact constellation
Difference between snowflake schema and fact constellation
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 

Similar to Coronel Morris_DatabaseSystems_14e_PPT_Mod04.pptx

Data base design
Data base designData base design
Data base design
Roxana Tadayon
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
Infotech27
 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptx
MaryJoseph79
 
Database design
Database designDatabase design
Database design
FLYMAN TECHNOLOGY LIMITED
 
Ch10.pptx
Ch10.pptxCh10.pptx
Ch10.pptx
MweeneMweemba1
 
Thoughts On Architecting V4 2
Thoughts On Architecting V4 2Thoughts On Architecting V4 2
Thoughts On Architecting V4 2
bmercer
 
Agility by Design - Building Software to Last
Agility by Design - Building Software to LastAgility by Design - Building Software to Last
Agility by Design - Building Software to Last
eprentise
 
Coronel_DatabaseSystems_13e_ch02.pptx
Coronel_DatabaseSystems_13e_ch02.pptxCoronel_DatabaseSystems_13e_ch02.pptx
Coronel_DatabaseSystems_13e_ch02.pptx
rmzx1989
 
DATA MODELING.pptx
DATA MODELING.pptxDATA MODELING.pptx
DATA MODELING.pptx
NishimwePrince
 
Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04
Beni Krisbiantoro
 
MOK8 Module 3 Data and Bus Intelligence
MOK8 Module 3 Data and Bus Intelligence MOK8 Module 3 Data and Bus Intelligence
MOK8 Module 3 Data and Bus Intelligence
Mavis65
 
Salesforce developer fa qs
Salesforce developer fa qsSalesforce developer fa qs
Salesforce developer fa qs
Rakesh Joshi
 
Salesforce developer fa qs
Salesforce developer fa qsSalesforce developer fa qs
Salesforce developer fa qs
Rakesh Joshi
 
MBA 635 chapter 15
MBA 635 chapter 15MBA 635 chapter 15
MBA 635 chapter 15
BHUOnlineDepartment
 
Salesforce Training Institute & Courses Pune | SFDC Training PCMC
Salesforce Training Institute & Courses Pune | SFDC Training PCMCSalesforce Training Institute & Courses Pune | SFDC Training PCMC
Salesforce Training Institute & Courses Pune | SFDC Training PCMC
victoriousdigital
 
Management High-level overview of the OMG Data Distribution Service (DDS)
Management High-level overview of the OMG Data Distribution Service (DDS)Management High-level overview of the OMG Data Distribution Service (DDS)
Management High-level overview of the OMG Data Distribution Service (DDS)
Gerardo Pardo-Castellote
 
Org chart viewer and mobile company directory
Org chart viewer and mobile company directoryOrg chart viewer and mobile company directory
Org chart viewer and mobile company directory
Pawan Mundhra
 
2020 07-08 fireside chat sharing architecture
2020 07-08 fireside chat sharing architecture2020 07-08 fireside chat sharing architecture
2020 07-08 fireside chat sharing architecture
Jihun Jung
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
amanuel236786
 
The Role of the Architect in ERP and PDM System Deployment
The Role of the Architect in ERP and PDM System DeploymentThe Role of the Architect in ERP and PDM System Deployment
The Role of the Architect in ERP and PDM System Deployment
Glen Alleman
 

Similar to Coronel Morris_DatabaseSystems_14e_PPT_Mod04.pptx (20)

Data base design
Data base designData base design
Data base design
 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptx
 
Database design
Database designDatabase design
Database design
 
Ch10.pptx
Ch10.pptxCh10.pptx
Ch10.pptx
 
Thoughts On Architecting V4 2
Thoughts On Architecting V4 2Thoughts On Architecting V4 2
Thoughts On Architecting V4 2
 
Agility by Design - Building Software to Last
Agility by Design - Building Software to LastAgility by Design - Building Software to Last
Agility by Design - Building Software to Last
 
Coronel_DatabaseSystems_13e_ch02.pptx
Coronel_DatabaseSystems_13e_ch02.pptxCoronel_DatabaseSystems_13e_ch02.pptx
Coronel_DatabaseSystems_13e_ch02.pptx
 
DATA MODELING.pptx
DATA MODELING.pptxDATA MODELING.pptx
DATA MODELING.pptx
 
Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04Database design, implementation, and management -chapter04
Database design, implementation, and management -chapter04
 
MOK8 Module 3 Data and Bus Intelligence
MOK8 Module 3 Data and Bus Intelligence MOK8 Module 3 Data and Bus Intelligence
MOK8 Module 3 Data and Bus Intelligence
 
Salesforce developer fa qs
Salesforce developer fa qsSalesforce developer fa qs
Salesforce developer fa qs
 
Salesforce developer fa qs
Salesforce developer fa qsSalesforce developer fa qs
Salesforce developer fa qs
 
MBA 635 chapter 15
MBA 635 chapter 15MBA 635 chapter 15
MBA 635 chapter 15
 
Salesforce Training Institute & Courses Pune | SFDC Training PCMC
Salesforce Training Institute & Courses Pune | SFDC Training PCMCSalesforce Training Institute & Courses Pune | SFDC Training PCMC
Salesforce Training Institute & Courses Pune | SFDC Training PCMC
 
Management High-level overview of the OMG Data Distribution Service (DDS)
Management High-level overview of the OMG Data Distribution Service (DDS)Management High-level overview of the OMG Data Distribution Service (DDS)
Management High-level overview of the OMG Data Distribution Service (DDS)
 
Org chart viewer and mobile company directory
Org chart viewer and mobile company directoryOrg chart viewer and mobile company directory
Org chart viewer and mobile company directory
 
2020 07-08 fireside chat sharing architecture
2020 07-08 fireside chat sharing architecture2020 07-08 fireside chat sharing architecture
2020 07-08 fireside chat sharing architecture
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
 
The Role of the Architect in ERP and PDM System Deployment
The Role of the Architect in ERP and PDM System DeploymentThe Role of the Architect in ERP and PDM System Deployment
The Role of the Architect in ERP and PDM System Deployment
 

Recently uploaded

Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
How MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdfHow MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdf
MJ Global
 
GKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt PresentationGKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt Presentation
GraceKohler1
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
my Pandit
 
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdfHOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
46adnanshahzad
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
aragme
 
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
Lacey Max
 
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
taqyea
 
Top mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptxTop mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptx
JeremyPeirce1
 
Top 10 Free Accounting and Bookkeeping Apps for Small Businesses
Top 10 Free Accounting and Bookkeeping Apps for Small BusinessesTop 10 Free Accounting and Bookkeeping Apps for Small Businesses
Top 10 Free Accounting and Bookkeeping Apps for Small Businesses
YourLegal Accounting
 
Best Competitive Marble Pricing in Dubai - ☎ 9928909666
Best Competitive Marble Pricing in Dubai - ☎ 9928909666Best Competitive Marble Pricing in Dubai - ☎ 9928909666
Best Competitive Marble Pricing in Dubai - ☎ 9928909666
Stone Art Hub
 
Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024
Adnet Communications
 
Part 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 SlowdownPart 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 Slowdown
jeffkluth1
 
DearbornMusic-KatherineJasperFullSailUni
DearbornMusic-KatherineJasperFullSailUniDearbornMusic-KatherineJasperFullSailUni
DearbornMusic-KatherineJasperFullSailUni
katiejasper96
 
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & InnovationInnovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Operational Excellence Consulting
 
The Genesis of BriansClub.cm Famous Dark WEb Platform
The Genesis of BriansClub.cm Famous Dark WEb PlatformThe Genesis of BriansClub.cm Famous Dark WEb Platform
The Genesis of BriansClub.cm Famous Dark WEb Platform
SabaaSudozai
 
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdfThe Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
thesiliconleaders
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
hartfordclub1
 

Recently uploaded (20)

Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
Dpboss Matka Guessing Satta Matta Matka Kalyan panel Chart Indian Matka Dpbos...
 
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel ChartSatta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
Satta Matka Dpboss Matka Guessing Kalyan Chart Indian Matka Kalyan panel Chart
 
How MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdfHow MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdf
 
GKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt PresentationGKohler - Retail Scavenger Hunt Presentation
GKohler - Retail Scavenger Hunt Presentation
 
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian MatkaDpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
Dpboss Matka Guessing Satta Matta Matka Kalyan Chart Indian Matka
 
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your TasteZodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
Zodiac Signs and Food Preferences_ What Your Sign Says About Your Taste
 
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdfHOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
HOW TO START UP A COMPANY A STEP-BY-STEP GUIDE.pdf
 
2022 Vintage Roman Numerals Men Rings
2022 Vintage Roman  Numerals  Men  Rings2022 Vintage Roman  Numerals  Men  Rings
2022 Vintage Roman Numerals Men Rings
 
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
How are Lilac French Bulldogs Beauty Charming the World and Capturing Hearts....
 
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
一比一原版新西兰奥塔哥大学毕业证(otago毕业证)如何办理
 
Top mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptxTop mailing list providers in the USA.pptx
Top mailing list providers in the USA.pptx
 
Top 10 Free Accounting and Bookkeeping Apps for Small Businesses
Top 10 Free Accounting and Bookkeeping Apps for Small BusinessesTop 10 Free Accounting and Bookkeeping Apps for Small Businesses
Top 10 Free Accounting and Bookkeeping Apps for Small Businesses
 
Best Competitive Marble Pricing in Dubai - ☎ 9928909666
Best Competitive Marble Pricing in Dubai - ☎ 9928909666Best Competitive Marble Pricing in Dubai - ☎ 9928909666
Best Competitive Marble Pricing in Dubai - ☎ 9928909666
 
Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024Lundin Gold Corporate Presentation - June 2024
Lundin Gold Corporate Presentation - June 2024
 
Part 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 SlowdownPart 2 Deep Dive: Navigating the 2024 Slowdown
Part 2 Deep Dive: Navigating the 2024 Slowdown
 
DearbornMusic-KatherineJasperFullSailUni
DearbornMusic-KatherineJasperFullSailUniDearbornMusic-KatherineJasperFullSailUni
DearbornMusic-KatherineJasperFullSailUni
 
Innovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & InnovationInnovation Management Frameworks: Your Guide to Creativity & Innovation
Innovation Management Frameworks: Your Guide to Creativity & Innovation
 
The Genesis of BriansClub.cm Famous Dark WEb Platform
The Genesis of BriansClub.cm Famous Dark WEb PlatformThe Genesis of BriansClub.cm Famous Dark WEb Platform
The Genesis of BriansClub.cm Famous Dark WEb Platform
 
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdfThe Most Inspiring Entrepreneurs to Follow in 2024.pdf
The Most Inspiring Entrepreneurs to Follow in 2024.pdf
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
 

Coronel Morris_DatabaseSystems_14e_PPT_Mod04.pptx

  • 1. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 1 1 Database Systems: Design, Implementation, and Management, 14e Module 4: Entity Relationship (ER) Modeling Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
  • 2. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 2 Chapter Objectives By the end of this chapter, you should be able to: 1. Identify the main characteristics of entity relationship components 2. Describe how relationships between entities are defined 3. Explain how ERD components affect database design and implementation 4. Describe how real-world database design often requires the reconciliation of conflicting goals
  • 3. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 3 The Entity Relationship Model • The entity relationship model (ERM) forms the basis of an ERD − The ERD represents the conceptual database as viewed by the end user • ERDs depict the database’s main components: − Entities − Attributes − Relationships
  • 4. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 4 Entities • An entity is an object of interest to the end user − An entity refers to the entity set and not to a single entity occurrence • An entity in the ERM corresponds to a table—not to a row—in the relational environment − ERM refers to a table row as an entity instance or entity occurrence • In Chen, Crow’s Foot, and UML notations, an entity is represented by a rectangle that contains the entity’s name − The entity name, a noun, is usually written in all capital letters
  • 5. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 5 Attributes (1 of 4) • Attributes are characteristics of entities • A required attribute is an attribute that must have a value and cannot be left empty • An optional attribute does not require a value and can be left empty • Attributes must have a domain, which is the set of possible values for a given attribute • An identifier (Primary Keys) is one or more attributes that uniquely identify each entity instance • A composite identifier is a primary key composed of more than one attribute
  • 6. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 6 Attributes (2 of 4) • A composite attribute is an attribute that can be subdivided to yield additional attributes (ADDRESS can be subdivided into street, city, state, and zip code.) • A simple attribute is an attribute that cannot be subdivided(age, sex, and marital status) • A single-valued attribute is an attribute that has only a single value(a person can have only one Social Security number, and a manufactured part can have only one serial number.) • Multivalued attributes are attributes that have many values (a person may have several college degrees, and a household may have several different phones) • Implementing multivalued attributes − Create several new attributes, one for each component of the original multivalued attribute − Create a new entity composed of the original multivalued attribute’s components • A derived attribute (computed attributes) is an attribute whose value is calculated from other attributes (an employee’s age, EMP_AGE, may be found by computing the integer value of the difference between the current date and the EMP_DOB)
  • 7. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 7 Attributes (3 of 4) • Figure 4.1 The Attributes of the STUDENT Entity: Chen and Crow’s Foot • Figure 4.3 A Multivalued Attribute in An Entity
  • 8. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 8 Attributes (4 of 4) • Figure 4.4 Splitting the Multivalued Attribute into New Attributes • Figure 4.6 Depiction of a Derived Attribute
  • 9. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 9 Relationships • The entities that participate in a relationship are also known as participants and each relationship is identified by a name that describes the relationship • The relationship name is an active or passive verb • Relationships between entities always operate in both directions
  • 10. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 10 Connectivity and Cardinality (1 of 2) • Connectivity describes the relationship classification − Includes 1:1, 1:M, and M:N • Cardinality expresses the minimum and maximum number of entity occurrences associated with one occurrence of the related entity − In the ERD, cardinality is indicated by placing the appropriate numbers beside the entities, using the format (x,y) − The first value represents the minimum number of associated entities and the second value represents the maximum number of associated entities
  • 11. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 11 Connectivity and Cardinality (2 of 2) Figure 4.7 Connectivity and Cardinality in an ERD A team must have a minimum of five players—that is, a team will not be created until at least five players are ready to be assigned to a team. A team can have a maximum of eight players. A player can be assigned to only one team.
  • 12. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 12 If the fewest rows that must be related is zero, then participation is optional. If the fewest rows that must be related is anything greater than zero, then participation is mandatory.
  • 13. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 13
  • 14. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 14 Existence Dependence • An entity is said to be existence-dependent if it can exist in the database only when it is associated with another related entity occurrence (“EMPLOYEE claims DEPENDENT”; impossible for the dependent to exist apart from the EMPLOYEE in the database). − An entity is existence-dependent if it has a mandatory foreign key • If an entity can exist apart from all of its related entities, it is existence-independent − It is referred to as a strong entity or regular entity • E.g., some of product parts are produced in-house and other parts are bought from vendors; PART is existence-independent from VENDOR)
  • 15. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 15 Relationship Strength (1 of 3) • Weak (Non-identifying) Relationships − A weak relationship exists if the primary key of the related entity does not contain a primary key component of the parent entity  COURSE (CRS_CODE, DEPT_CODE, CRS_DESCRIPTION, CRS_CREDIT)  CLASS (CLASS_CODE, CRS_CODE, CLASS_SECTION, CLASS_TIME, ROOM_CODE, PROF_NUM) (The CLASS primary key did not inherit a primary key component from the COURSE entity) • Strong (Identifying) Relationships − A strong relationship exists when the primary key of the related entity contains a primary key component of the parent entity  COURSE (CRS_CODE, DEPT_CODE, CRS_DESCRIPTION, CRS_CREDIT)  CLASS (CRS_CODE, CLASS_SECTION, CLASS_TIME, ROOM_CODE, PROF_NUM) (The CLASS entity primary key is composed of CRS_CODE and CLASS_SECTION)
  • 16. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 16 Relationship Strength (2 of 3) Figure 4.9 A Weak (Non-Identifying) Relationship Between COURSE and CLASS
  • 17. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 17 Relationship Strength (3 of 3) Figure 4.10 A Strong (Identifying) Relationship Between COURSE and CLASS
  • 18. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 18 Weak Entities (1 of 3) • A weak entity is one that meets the following two conditions: − The entity is existence-dependent − The entity has a primary key that is partially or totally derived from parent entity in the relationship • The database designer usually determines whether an entity can be described as weak based on business rules
  • 19. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 19 Weak Entities (2 of 3) Figure 4.11 A Weak Entity in an ERD
  • 20. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 20 Weak Entities (3 of 3) Figure 4.12 A Weak Entity in a Strong Relationship
  • 21. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 21 Relationship Participation (1 of 3) • Optional participation means that one entity occurrence does not require a corresponding entity occurrence in a particular relationship • For example, in the “COURSE generates CLASS” relationship, you noted that at least some courses do not generate a class. Therefore, the CLASS entity is considered to be optional to the COURSE entity. The existence of an optional entity indicates that its minimum cardinality is 0. • Mandatory participation means that one entity occurrence requires a corresponding entity occurrence in a particular relationship
  • 22. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 22 Relationship Participation (2 of 3) • Figure 4.13 An Optional CLASS Entity in the Relationship “PROFESSOR teaches CLASS” • Figure 4.14 CLASS is Optional to COURSE It is quite possible for a PROFESSOR not to teach a CLASS. Therefore, CLASS is optional to PROFESSOR. On the other hand, a CLASS must be taught by a PROFESSOR. Therefore, PROFESSOR is mandatory to CLASS.
  • 23. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 23 Relationship Participation (3 of 3) Figure 4.15 COURSE and CLASS in a Mandatory Relationship
  • 24. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 24 Relationship Degree (1 of 3) • A relationship degree indicates the number of entities or participants associated with a relationship • A unary relationship exists when an association is maintained within a single entity (an employee within the EMPLOYEE entity is the manager for one or more employees within that entity; an EMPLOYEE may manage many EMPLOYEEs, and each EMPLOYEE is managed by one EMPLOYEE.”) • A binary relationship exists when two entities are associated • A ternary relationship exists when three entities are associated • A recursive relationship is a relationship within a single entity type
  • 25. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 25 Relationship Degree (2 of 3) Figure 4.16 Three Types of Relationship Degree
  • 26. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 26 Relationship Degree (3 of 3) Figure 4.17 The Implementation of a Ternary Relationship
  • 27. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 27 Knowledge Check Activity 4-1 What two conditions must be met before an entity can be classified as a weak entity?
  • 28. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 28 Knowledge Check Activity 4-1: Answer What two conditions must be met before an entity can be classified as a weak entity? • Answer: To be classified as a weak entity, two conditions must be met: − The entity must be existence-dependent on its parent entity. − The entity must inherit at least part of its primary key from its parent entity.
  • 29. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 29 Recursive Relationships (1 of 2) • A recursive relationship can exist between occurrences of the same entity set − Naturally, such a condition is found within a unary relationship • One common pitfall when working with unary relationships is to confuse participation with referential integrity − Similar because they are both implemented through constraints on the same set of attributes
  • 30. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 30 Recursive Relationships (2 of 2) • Figure 4.18 An ER Representation of Recursive Relationships • Figure 4.19 The 1:1 Recursive Relationship “EMPLOYEE Is Married to EMPLOYEE” • Figure 4.20 Implementation of the 1:M Recursive Relationship “EMPLOYEE manages EMPLOYEE” You place the primary key of the entity into the entity a second time to act as the foreign key. rename it: when EMP_NUM was placed into the EMPLOYEE entity a second time to act as the foreign key, it was renamed to EMP_SPOUSE
  • 31. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 31 Associative (Composite) Entities (1 of 2) • The ER model uses the associative entity to represent an M:N relationship between two or more entities • It is also called a composite or bridge entity and is a 1:M relationship with the parent entities − It is composed of the primary key attributes of each parent entity • The composite entity may also contain additional attributes that play no role in connective process
  • 32. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 32 Associative (Composite) Entities (2 of 2) Figure 4.26 A Composite Entity in an ERD
  • 33. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 33 Developing an ER Diagram (1 of 7) • Building an ERD usually involves the following activities: − Create a detailed narrative of the organization’s description of operations − Identify business rules based on the description of operations − Identify main entities and relationships from the business rules − Develop the initial ERD − Identify the attributes and primary keys that adequately describe entities − Revise and review the ERD
  • 34. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 34 Developing an ER Diagram • 1.Tiny College (TC) is divided into several schools: business, arts and sciences, education, and applied sciences. Each school is administered by a dean who is a professor. Each professor can be the dean of only one school, and a professor is not required to be the dean of any school. Therefore, a 1:1 relationship exists between PROFESSOR and SCHOOL. Note that the cardinality can be expressed by writing (1,1) next to the entity PROFESSOR and (0,1) next to the entity SCHOOL. • 2.Each school comprises several departments. For example, the school of business has an accounting department, a management/marketing department, an economics/finance department, and a computer information systems department. Note again the cardinality rules: The smallest number of departments operated by a school is one, and the largest number of departments is indeterminate (N). On the other hand, each department belongs to only a single school; thus, the cardinality is expressed by (1,1). That is, the minimum number of schools to which a department belongs is one, as is the maximum number.
  • 35. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 35 Developing an ER Diagram (2 of 7) • Figure 4.27 The First Tiny College ERD Segment
  • 36. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 36 Each department may offer courses. For example, the management/marketing department offers courses such as Introduction to Management, Principles of Marketing, and Production Management. The ERD segment for this condition is shown in Figure 4.28. Note that this relationship is based on the way Tiny College operates. For example, if Tiny College had some departments that were classified as “research only,” they would not offer courses; therefore, the COURSE entity would be optional to the DEPARTMENT entity. • Figure 4.28 The Second Tiny College ERD Segment Developing an ER Diagram
  • 37. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 37 A CLASS is a section of a COURSE. That is, a department may offer several sections (classes) of the same database course. Each of those classes is taught by a professor at a given time in a given place. In short, a 1:M relationship exists between COURSE and CLASS. Additionally, each class is offered during a given semester. SEMESTER defines the year and the term that the class will be offered. Note that this is different from the date when the student actually enrolls in a class. Developing an ER Diagram
  • 38. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 38 Developing an ER Diagram • Figure 4.30 The Fourth Tiny College ERD Segment Each department should have one or more professors assigned to it. One and only one of those professors chairs the department, and no professor is required to accept the chair position. Therefore, DEPARTMENT is optional to PROFESSOR in the “chairs” relationship.
  • 39. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 39 Developing an ER Diagram • Figure 4.31 The Fifth Tiny College ERD Segment Each professor may teach up to four classes; each class is a section of a course. A professor may also be on a research contract and teach no classes at all.
  • 40. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 40 Developing an ER Diagram • Figure 4.32 The Sixth Tiny College ERD Segment A student may enroll in several classes but take each class only once during any given enrollment period. For example, during the current enrollment period, a student may decide to take five classes—Statistics, Accounting, English, Database, and History—but that student would not be enrolled in the same Statistics class five times during the enrollment period! Each student may enroll in up to six classes, and each class may have up to 35 students, thus creating an M:N relationship between STUDENT and CLASS.
  • 41. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 41 Developing an ER Diagram (5 of 7) Each department has several (or many) students whose major is offered by that department. However, each student has only a single major and is therefore associated with a single department Each student has an advisor in his or her department; each advisor counsels several students. An advisor is also a professor, but not all professors advise students. Therefore, STUDENT is optional to PROFESSOR in the “PROFESSOR advises STUDENT” relationship.
  • 42. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 42 Developing an ER Diagram (5 of 7) The CLASS entity contains a ROOM_CODE attribute. Given the naming conventions, it is clear that ROOM_CODE is an FK to another entity. Clearly, because a class is taught in a room, it is reasonable to assume that the ROOM_CODE in CLASS is the FK to an entity named ROOM. In turn, each room is located in a building. So, the last Tiny College ERD is created by observing that a BUILDING can contain many ROOMs, but each ROOM is found in a single BUILDING.
  • 43. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 43 Developing an ER Diagram Figure 4.36 The Completed Tiny College ERD
  • 44. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 44 Developing an ER Diagram (7 of 7) Table 4.4 Components of the ERM Entity Relationship Connectivity Entity SCHOOL operates 1:M DEPARTMENT DEPARTMENT has 1:M STUDENT DEPARTMENT employs 1:M PROFESSOR DEPARTMENT offers 1:M COURSE COURSE generates 1:M CLASS SEMESTER includes 1:M CLASS PROFESSOR is dean of 1:1 SCHOOL PROFESSOR chairs 1:1 DEPARTMENT PROFESSOR teaches 1:M CLASS PROFESSOR advises 1:M STUDENT STUDENT enrolls in M:N CLASS BUILDING contains 1:M ROOM ROOM is used for 1:M CLASS
  • 45. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 45 Database Design Challenges: Conflicting Goals (1 of 2) • Database designers must often make design compromises that are triggered by conflicting goals − Database design must conform to design standards − High processing speed may limit the number and complexity of logically desirable relationships − Maximum information generation may lead to loss of clean design structures and high transaction speed • A design that meets all logical requirements and design conventions is an important goal
  • 46. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 46 Database Design Challenges: Conflicting Goals (2 of 2) Figure 4.39 Various Implementations of the 1:1 Recursive Relationship
  • 47. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 47 Knowledge Check Activity 4-2 • How is a relationship between entities indicated in an ERD?
  • 48. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 48 Knowledge Check Activity 4-2: Answer • How is a relationship between entities indicated in an ERD? • Answer: A relationship is indicated by a line connecting the related entities. STUDENT STU_NUM (PK) STU_LNAME STU_FNAME STU_INITIAL DEPT_CODE (FK) Simplified Crow’s Foot entity box (no attribute component.) STUDENT Crow’s Foot entity box (attribute component included.) Crow’s Foot connectivity symbol, implied (0,N) cardinality. A weak relationship A strong relationship
  • 49. Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 49 Summary Now that the lesson has ended, you should be able to: 1. Identify the main characteristics of entity relationship components 2. Describe how relationships between entities are defined 3. Explain how ERD components affect database design and implementation 4. Describe how real-world database design often requires the reconciliation of conflicting goals