handout2 - Handout 2 Modelling Databases using E/R Diagrams...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Handout 2: Modelling Databases using E/R Diagrams CS 4604 September 22, 2010 This handout lists textual descriptions of scenarios we may want to model using databases. We will cover some of these in detail in class, especially the one on students, classes, and professors. You should use the other scenarios for practice. Keep in mind that E/R diagrams cannot model all aspects of a database application. For each scenario, you should add “notes” stating which aspects the design cannot represent. University Classes 1 This scenario models the courses, students, professors, departments, and the like at a single university in a single semester. Each student enrolls in a certain number of courses in the semester. At most one professor teaches each course. Each student receives a grade in each course he/she is enrolled in. In turn, each student evaluates the professor teaching the course. Each student has a name, a PID, and an address. A professor has a PID, a name and belongs to a department. The age of a professor can be one of “old,” “very old,” and “still alive”. Each course has a name, a number, an offering department, a classroom, a maximum enrollment, and an actual enrollment. The actual enrollment must be at most the maximum enrollment. (This university has not invented the concept of CRNs.) A student can TA a course but not a course he/she is enrolled in. Each department has a unique name. Each department has at most one chairperson who is its head (there are times when a department may not have a chairperson). Each chairperson can be the head
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern