Question
(from the book of Ramakrishnan and Gehrke) A university database contains information about professors (identified by social security number, or SSN), and courses (identified by
(from the book of Ramakrishnan and Gehrke)
A university database contains information about professors (identified by social security number, or SSN), and courses (identified by courseID). Professors teach courses; each of the following situations concerns the Teaches relationship set. For each situation, draw an ER diagram that describes it (assuming that no further constraints hold). 1. Professors can teach the same course in several semesters, and each offering must be recorded. 2. Professors can teach the same course in several semesters, and only the most recent such offering need to be recorded. (Assume this condition applies to all subsequent questions.) 3. Every professor must teach some course. 4. Every professor teaches exactly one course (no more, no less). 5. Every professor teaches exactly one course (no more, no less), and every course must be taught by some professor. 6. Now suppose that certain courses can be taught by a team of professors jointly but, but it is possible that no one professor in a team can teach the course. Model this situation, introducing additional entity types and relationship types if necessary.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started