DBMS Chapter 9 Flashcards

1
Q

Step 1: Mapping of Regular Entity Types

A

For every entity give it a box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Step 2: Mapping of Weak Entity Types

A

give a box for all weak entities but give them a foreign key to the owner entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Step 3: Mapping of Binary 1:1 Relation Types

3 Approaches

A

Foreign Key approach:
Merged relation option:
Cross-reference option:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Step 4: Mapping of Binary 1:N Relationship Types.

A

Give a foreign key(primary key of the other entity) to the entity with the side of N,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Step 5: Mapping of Binary M:N Relationship Types.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Step 6: Mapping of Multivalued attributes.

A

Create a new relation, Give it the attribute in the mulitvalued attribute, give it a foreign key to connect it to the Entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Step 7: Mapping of N-ary Relationship Types.

A

Create new relation, give all primary keys connected to it as a foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

8A: Multiple relations-Superclass and subclasses.

A

Create a new relation for the subclasses, give it the primary key of its superclass as a foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

8B: Multiple relations-Subclass relations only

A

Give the primary key of the superclass in the subclasses and delete the superclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

8C: Single relation with one type attribute.

A

Add the attributes of all sub-classes to the superclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

8D: Single relation with multiple type attributes.

A

use flags to signify the subclass and add the attributes to the superclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Step 9: Mapping of Union Types (Categories).

A

Create a surrogate key to place into the superclasses as a foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Foreign Key approach:

A

put a foreign key in both the entities to connect them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Merged relation

A

combine the attributes into one entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Cross-reference

A

set up a new box for the relationship and place the primary keys of the two entities as foreign keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly