5 ER - and EER-to-Relational Mapping
5 ER - and EER-to-Relational Mapping
Chapter Outline
◼ ER-to-Relational Mapping Algorithm
◼ Step 1: Mapping of Regular Entity Types
◼ Step 2: Mapping of Weak Entity Types
◼ Step 3: Mapping of Binary 1:1 Relation Types
◼ Step 4: Mapping of Binary 1:N Relationship Types.
◼ Step 5: Mapping of Binary M:N Relationship Types.
◼ Step 6: Mapping of Multivalued attributes.
◼ Step 7: Mapping of N-ary Relationship Types.
ER DIAGRAM
FIGURE 7.2
Result of mapping the COMPANY ER schema into a
relational schema.
FIGURE 7.2
Result of mapping the COMPANY ER schema into a
relational schema.
Step 4: Mapping of Binary 1:N
Relationship Types
◼ For each regular binary 1:N relationship type R,
identify the relation S that represent the
participating entity type at the N-side of the
relationship type.
Step 6: Mapping of
Multivalued attributes
◼ Example: The relation DEPT_LOCATIONS is
created.