It is very easy to convert an ER model into a Relational model (and the next step will be to define the database using the relation model)
|
|
|
We need a lower level model to do so...
|
|
You see that:
|
|
Example:
|
|
|
We will handle the weak entities after discussing how to represent relationships in the Relational Model (later)
|
|
|
Example:
|
|
Result:
|
The red underlined attributes are the the primary key in each relation
The blue underlined attributes are the candidate keys
Next:
|