ER-to-Relational Mapping - English
ER-to-Relational Mapping - English
2
Step 6: Mapping of N-ary Relationship Types.
Each N-ary relationship becomes a table holds its name, its attributes become columns in this table and
its PK is the PKs for all tables associated with the relationship.
If -------: ===== we move the PK from partial side ----- to total side =====
If ====: ===== we merge the two tables and the relationship into one table
If -------: ------- the relation becomes a table holds its name, its attributes become columns in this table
and its PK is the PKs for the two tables associated with the relationship.
Important Note: When we move the PK from one table to another by MAPPING, it becomes a foreign
key (FK) in the destination table. In other words “strange key” so it is preferable to point to the table of
origin for that key.
During mapping, relationship attributes must be moved to the same side where you moved the primary
key.