EERM to RM Flashcards
(9 cards)
Step 1: Mapping of Regular entity types
Create a relation that includes all the attributes of the entity;
Choose one of the key attributes to be a key attribute in the relation
Step 2: Mapping of Weak-entity types
Create a relation, add attributes,;
Include primary key of owner as foreign key;
Primary key is combination of foreign key and partial key
Step 3: Mapping of binary 1:1 relationship
Create a relation for the relationship (if needed);
Choose one of the relations and include a foreign key in that relation
Step 4: Mapping of 1:N relationships
Create a relation for the relationship (if needed);
Include primary key of 1 side as foreign key of N side
Step 5: Mapping of M:N relationships
Create a relation for the relationship;
Include the primary keys of both sides in the relation
Step 6: Mapping of multivalued attributes
Create a relation for the attribute;
Use primary key of the main entity;
Primary key will be primary key from main entity and name of multivalued attribute
Step 7: Mapping of Composite attributes
Create a relation for the attribute (if needed);
Use primary key of the main entity;
Primary key will be primary key from main entity and attributes of the composite attribute
Step 8: Mapping of N-ary relationships
Create a relation for the relationship;
Add the simple attributes
Multiple relations - Superclass and Subclasses
Create a relation L for the super class. Create a separate relation for each subclass, where the primary key for each relation is the primary key of the superclass