7. 1. A DOCTOR writes one or more PRESCRIPTIONs.
2. A PATIENT may receive one or more PRESCRIPTIONs.
3. A DRUG may appear in one or more PRESCRIPTIONs.
9. For example:
1:M UR “an EMPLOYEE may manage many EMPLOYEEs,
and each EMPLOYEEs managed by one EMPLOYEE”
1:1 UR “an EMPLOYEE may be married to one and only
one other EMPLOYEE”
M:N UR “ a COURSE may be a prerequisite to many other
COURSEs, and each COURSE may have many other
COURSEs as prerequisites.
10. 1:1 UR “an EMPLOYEE may be married to
one and only one other EMPLOYEE”
15. Participation as described is bidirectional, meaning
that it must be addressed in both directions along
the relationship.
•Must every employee have a spouse who is
an employee?
•Must every employee be spouse to
another employee?
16. “NO” … it is possible to be an
employee and not have another
employee as a spouse. Also it
possible to be an employee and
not be the spouse of another
employee…
17. Associative (composite) Entities
-In the original ERM described by Chen,
relationships do not contain attributes.
-The associative entity is used to
implement a M:N relationship between
two or more entities.
-Also known as a “Composite or Bridge
entity”