ER Activity L3
ER Activity L3
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.
Attributes, primary keys (in bold black) and foreign keys (in bold blue) are shown below:
Relationships:
Here we have identified the relationships and we can see that student-course and lecturer-
course exhibit many-to-many relationship and we need to introduce another entity to break
this M:M relationship.
Here come two more entities:
Combination of reg_no & course_code serves as primary key for this table. reg_no &
course_code are also foreign keys here as they are primary keys in their respective tables.
2- Course-Allocation (emp_code, course_code, date, assigned_by)
Combination of emp_code & course_code serves as primary key for this table. emp_code &
course_code are also foreign keys here as they are primary keys in their respective tables.
Now you can create ERD based on these 9 entities and their identified
relationships. (A rough sketch in given below).
Registratio Course
n Lecturer
Allocation