Scenario To ER Diagram - Step by Step Solution
Scenario To ER Diagram - Step by Step Solution
Scenario To ER Diagram - Step by Step Solution
The Scenario:
A University contains many Faculties. The Faculties in turn are divided into several Schools. Each School
offers numerous programs and each program contains many courses. Lecturers can teach many different
courses and even the same course numerous times. Courses can also be taught by many lecturers. A
student is enrolled in only one program but a program can contain many students. Students can be
enrolled in many courses at the same time and the courses have many students enrolled.
contains
Faculty
School
Program
divided
into
offers
employs
contains
taken
by
Course
Lecturer
Student
taught
enrolled enrolled
SR KohinooR| www.facebook.com/kohinoor11
SR KohinooR| www.facebook.com/kohinoor11
In this step any many-to-many relationships have to be eliminated. In the ERD so far
there are two relationships that fall into this category. They are Lecturer Course and
Course Student. As you can see Associative entities have been included to rectify the
situation.
SR KohinooR| www.facebook.com/kohinoor11
Employee Name
Employee Address
Speciality
Entity
Attribute
Entity
Employee_name
Lecturer
Faculty_name
Faculty
Employee_number
Lecturer
Student_number
Student
Course_number
Course
Student_name
Student
Now, add attributes of all entities. This is an example of what all the entities should look
like when they have been fully attributed.
SR KohinooR| www.facebook.com/kohinoor11