Lecture 3
Lecture 3
Conceptual design
Logical design
Physical Design
One-to-many (1:M)
For each instance of entity A, many instances of entity B can exist,
which for each instance of entity B, only one instance of entity A
> CHANGE, EVERYDAY
exists. Again, these can be optional or mandatory relationships.
Relationships
Many-to-many (M:N)
For each instance of entity A, many instances of
entity B can exist, and vice versa. These can be
optional or mandatory relationships.
There are numerous ways of showing these
relationships. The image below
shows student and course entities. In this case,
each student must have registered for at least
one course, but a course does not necessarily
have to have students registered. The student-
to-course relationship is mandatory, and the
course-to-student relationship is optional.