ER to Relational Model 157A (4) NO FLASH CARDS!! BETTER TO LOOK AT SLIDES

1
Q

ER to Relational Model

Step 1: Regular Entity Types

A

● For each regular/strong entity type, create a corresponding relation that includes all the simple attributes (includes simple attributes of composite relations)
● Choose one of the key attributes as primary.
○ If composite, the simple attributes together form the primary key
● Any remaining key attributes are kept as secondary unique keys (these will be useful for physical tuning w.r.t. indexing analysis)

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

ER to Relational Model

Step 2: Weak Entity Types

A

● For each weak entity type, create a corresponding relation that
includes all the simple attributes.
● Add as a foreign key all of the primary key attribute(s) in the entity
corresponding to the owner entity type.
● The primary key is the combination of all the primary key attributes
from the owner and the partial key of the weak entity, if any.

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

Step 3: Mapping Binary 1-to-1

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