Wednesday 9 January 2013

E-R diagram for a university

A university registrar’s office maintains data about the following entities:

(a) courses, including number, title, credits, syllabus, and prerequisites;

(b) course offerings, including course number, year, semester, section number, instructor(s), timings, and classroom;

(c) students, including student-id, name, and program; and

(d) instructors, including identification number, name, department, and title. Further, the enrollment of students in courses and grades awarded to students in each course they are enrolled for must be appropriately modeled.

Construct an E-R diagram for the registrar’s office. Document all assumptions that you make about the mapping constraints.

Answer:

In the answer given here, the main entity sets are student, course, course-offering, and instructor.

E-R-Diagram-for-a-UniversitE-R diagram for a university


The entity set course-offering is a weak entity set dependent on course. The assumptions made are :


a. a class meets only at one particular place and time. This E-R diagram cannot model a class meeting at different places at different times.


b. There is no guarantee that the database does not have two classes meeting at the same place and time.


Related Topics : Interview Questions on Data Structures

1 comment: