Next up: the R (Relationship) in the ER-model
|
Example:
A = {a, b, c} B = {3, 7} A × B = { (a,3), (a,7), (b,3), (b,7), (c,3), (c,7) } |
|
Example 1:
|
Example 2:
|
|
|
|
|
In other words:
This is the main reason why a relation is not used in ER modeling (content of relations must change in database, e.g., more kids are born to parents)...
Instead, ER-modeling uses the concept of relationship