DBMS Chapter 9 Flashcards
Step 1: Mapping of Regular Entity Types
For every entity give it a box
Step 2: Mapping of Weak Entity Types
give a box for all weak entities but give them a foreign key to the owner entity
Step 3: Mapping of Binary 1:1 Relation Types
3 Approaches
Foreign Key approach:
Merged relation option:
Cross-reference option:
Step 4: Mapping of Binary 1:N Relationship Types.
Give a foreign key(primary key of the other entity) to the entity with the side of N,
Step 5: Mapping of Binary M:N Relationship Types.
For each regular binary M:N relationship type R, create a new relation S to represent R.
Include as foreign key attributes in S the primary keys of the entities its connected to which is the primary key for this relationship
Step 6: Mapping of Multivalued attributes.
Create a new relation, Give it the attribute in the mulitvalued attribute, give it a foreign key to connect it to the Entity
Step 7: Mapping of N-ary Relationship Types.
Create new relation, give all primary keys connected to it as a foreign key
8A: Multiple relations-Superclass and subclasses.
Create a new relation for the subclasses, give it the primary key of its superclass as a foreign key
8B: Multiple relations-Subclass relations only
Give the primary key of the superclass in the subclasses and delete the superclass
8C: Single relation with one type attribute.
Add the attributes of all sub-classes to the superclass
8D: Single relation with multiple type attributes.
use flags to signify the subclass and add the attributes to the superclass
Step 9: Mapping of Union Types (Categories).
Create a surrogate key to place into the superclasses as a foreign key
Foreign Key approach:
put a foreign key in both the entities to connect them
Merged relation
combine the attributes into one entity
Cross-reference
set up a new box for the relationship and place the primary keys of the two entities as foreign keys