Professional Documents
Culture Documents
Lecture 14-ER To Relational 2
Lecture 14-ER To Relational 2
com/wisdom/bismillah-nature/
CSC271 – DATABASE SYSTEMS
Identifier Assigned
It is natural and familiar to end-users
Default identifier may not be unique
Example of mapping an associative entity
An associative entity
Example of mapping an associative entity (cont.)
EMPLOYEE entity
with unary
relationship
EMPLOYEE
relation with
recursive foreign
key
Mapping a unary M:N relationship
Bill-of-materials
relationships (M:N)
ITEM and
COMPONENT
relations
TRANSFORMING EER DIAGRAMS INTO RELATIONS (CONT.)
This is why
Remember But this makes a
treatment date It would be better to
that the very cumbersome
and time are create a surrogate
primary key key…
included in the key like Treatment#
MUST be
composite
unique
primary key
TRANSFORMING EER DIAGRAMS INTO RELATIONS (CONT.)