Converting ER to Relational Model Flashcards

1
Q

Convert 1 : * relationship into relational model form…

A

Create a relation for each entity with all original attributes. Add the foreign key to the ‘many’ relation.

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

Convert 1:1 (Mandatory,Mandatory) to relational model form…

A

Combine entities into 1 relation that holds combined attributes. The PK can be from either entity.

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

Convert 1:1 (Optional,Mandatory) to relational model form…

A

Create relations from entities. FK added to Mandatory relation since it will never be null.

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

Convert 1:1 (Optional,Optional) to relational model form…

A

Create 2 relations from entities, FK can be added to either relation.

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

Convert * : * relationship into relational model form…

A

Relation represents the relationship, the relation PK is a composite key of the 2 entity PK’s, the relation attributes come from the relationship.

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

What is the PK in * : * relational form is not uniquely distinguishable?

A

Add attribute to the PK to ensure uniquely distinguishable.

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

Convert Recursive 1 : * to relational form…

A

Create relation and create PK from ‘many’ role. For example, Postgraduate mentors many Undergraduates, UndergarduateMentorID would be added as FK.

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

Convert Recursive 1 : 1 to relational form…

A

Same as conventional 1 : 1 but with the implementation of roles.

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

Convert Recursive * : * to relational form…

A

Relation represents the relationship, PK is a composite of keys of both roles.

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

Convert complex relationship into relational form…

A

Take attributes from relationship and PK’s from all associated entities, and create a new relation. PK of the new relation is a composite key of the ‘many’ entities in the relation.

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

Convert Superclass / Subclass entities to relational form…

A

Either keep superclass, keep subclass, keep both.

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

Convert 1 : 1 weak entity into relational form…

A

Strong entity subsumes all weak entity attributes.

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