Beruflich Dokumente
Kultur Dokumente
Chapter 3
Modern Database Management,
7th Edition
Hoffer, Prescott, McFadden
Introduction
Associative Entity
An entity type that associates the
instances of one or more entity types and
contains attributes that are peculiar to the
relationship between those entity
instances
It may have its own simple identifier (or
primary key) or they may be assigned a
composite identifier during logical design
Special Notation/Symbol
Example
EmpID
EmpName
EMPLOYEE
CourseID
Date_Completed
CertificateNo
Completes
Date_Completed
CERTIFICATE
CourseTitle
A
COURSE
Cardinality Placement
Converting a relationship to an associative
entity has caused the relationship notation
to move
The many cardinality now terminates at
the associative entity, rather than at each
participating entity type
Example
identifier
CertificateNo
EmpID
Date_Completed
EmpName
A
EMPLOYEE
CourseTitle
CourseID
CERTIFICATE
Associative Entity
COURSE
Another Example:
Amount
Name
TransactionDate
ClientNo
CLIENT
AccountNo
Deposits/Withdraws
BankBranch
AccountName
CheckNo
BANKACCOUNT
Balance
Name
Amount
AccountName
ClientNo
CLIENT
AccountNo
TRANSACTION
BankBranch
CheckNo
BANKACCOUNT
Balance
STEP 2:
Transfer the cardinalities from the entities to the
associative entity
TransactionDate
Name
Amount
AccountName
ClientNo
CLIENT
AccountNo
TRANSACTION
BankBranch
CheckNo
BANKACCOUNT
Balance
TransactionDate
Name
Amount
AccountName
ClientNo
CLIENT
AccountNo
TRANSACTION
BankBranch
CheckNo
BANKACCOUNT
Balance
Place
TransactionDate
Amount
Name
ClientNo
CLIENT
AccountName
A
TRANSACTION
BankBranch
CheckNo
AccountNo
BANKACCOUNT
Balance
STEP 3:
Add an identifier to the associative entity
Add the primary keys of the related entities
TransactionDate
TransNo
ClientNo
AccountNo
Amount
Name
ClientNo
CLIENT
AccountName
A
TRANSACTION
BankBranch
CheckNo
AccountNo
BANKACCOUNT
Balance
Exercise
END OF PRESENTATION