Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER diagrams CORRECTLY represents S?
Tap to open full sizeFigure description
Four ER diagrams (i)-(iv), each built around entities Instructor, Course and a Teaches diamond between Instructor and Course. (i): Course is also joined by a plain line to a rectangle Registration (an entity, not a relationship); Course is joined to an Allocation diamond which is joined to Classroom; Course is joined directly to a diamond labelled Student, and that diamond is joined to a Guides diamond, which is joined to Instructor. So Student is drawn as a relationship diamond and Registration as an entity. (ii): Instructor-Teaches-Course; Course-Allocation-Classroom; Course joined to a Registration diamond, which is joined to a rectangle Projects; Projects joined to the Guides diamond, which is joined to Instructor. There is no Student entity; Projects stands in its place. (iii): Instructor-Teaches-Course; Course is joined by a direct line to Classroom and also by a line to an Allocation diamond that is not joined to Classroom; Course joined to a Registration diamond, which joined to the Student rectangle; Student-Guides-Instructor. (iv): Instructor-Teaches-Course; Course-Allocation-Classroom (the Allocation diamond sits between Course and Classroom); Course-Registration-Student; Student-Guides-Instructor.
- (A)
(i)
- (B)
(ii)
- (C)
(iii)
- (D)
(iv)