Midterm Exam: Introduction to Database Systems: Solutions
1. Entity-Relationship Model [16 points]
Below is the preferred solution:
The following variants were also accepted:
a. [12 points] Complete the diagram above to be a valid E-R diagram reflecting the following
constraints. (Be sure to make your bold lines very bold!)
• A student, uniquely identified by her SID, takes an exam (for example, Midterm #1) on exactly one
date. A student may take any number of exams (for example, Midterm #1, Midterm #2, and a final
exam), and every exam is taken by at least one student. An exam is uniquely identified by the
combination of a course and a semester.