Question: Scenario: You are tasked with designing a database for a university. The university has several departments, each offering multiple courses. Professors are assigned to teach
Scenario:
You are tasked with designing a database for a university. The university has several departments, each offering multiple courses. Professors are assigned to teach these courses, and students enroll in them. The university also keeps track of the research projects that professors are involved in and students can assist in these projects.
Requirements:
Entities and Attributes:
Department: DepartmentID Primary Key DepartmentName, Location
Course: CourseID Primary Key CourseName, Credits, DepartmentID Foreign Key
Professor: ProfessorID Primary Key ProfessorName, Title, DepartmentID Foreign Key
Student: StudentID Primary Key StudentName, Major, Year
ResearchProject: ProjectID Primary Key ProjectName, StartDate, EndDate, ProfessorID Foreign Key
Relationships:
DepartmentCourse: A department offers multiple courses toMany
ProfessorCourse: A professor can teach multiple courses, and a course can be taught by multiple professors ManytoMany
StudentCourse: A student can enroll in multiple courses, and a course can have multiple students enrolled ManytoMany
ProfessorResearchProject: A professor can be involved in multiple research projects toMany
StudentResearchProject: A student can assist in multiple research projects, and a research project can have multiple student assistants ManytoMany
Enhanced Features:
SpecializationGeneralization: Professors can be specialized into different types such as FullTime and PartTime. Each type has specific attributes:
FullTime: Salary, OfficeNumber
PartTime: HourlyRate, HoursPerWeek
Aggregation: Research projects can be aggregated into larger research initiatives.
Tasks:
Identify Entities and Relationships: List all entities and their attributes. Identify the relationships between entities and their cardinalities.
Draw the EER Diagram: Create an EER diagram that includes all entities, relationships, and enhanced features such as specializationgeneralization and aggregation.
Apply Constraints: Define any necessary constraints, such as total or partial participation and disjoint or overlapping constraints for the specializationgeneralization
Example Diagram:
You can use tools like Lucidchart or draw it manually to visualize the EER diagram. Heres a basic structure to get you started:
Department M Course
Professor MM Course
Student MM Course
Professor M ResearchProject
Student MM ResearchProject
Professor Generalization: FullTime, PartTime
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
