Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project 6 Q 7 . Styles The School database ( with 4 entities and 2 relationships ) is described and defined as follows. For Student
Project Q
Styles
The School database with entities and relationships is described and defined as follows. For Student entity, each student ID has last name, first name, GPA, hisher major Dept ID and hisher Advising Professor ID
For Dept entity, each dept ID has dept name, description, and its chair Professor ID
For Professor entity, each prof ID has last name, first name, and hisher Dept ID
For Course entity, each Course ID has course name, description, and number of units.
For TAKE relationship, a course can be taken by many students with their grades assigned, and a student can take many courses with their grades assigned as well accordingly.
For TEACH relationship, a course can be taught by many professors with specific years and semesters, and a professor can teach many courses with specific years and semesters.
B Please identify and show all onetomany and manytomany relationships among those four entities in this database.
Note: Each foreign key FK will cause a onetomany relationship. A primary key PK of two columns in a table will cause a manytomany relationship between those two entities identified by those two primary keys PK columns.
OnetoMany Relationships:
R: A professor may advise many students. due to FK
R: A dept may have many students majoring in this dept. due to FK
R: A dept may have many professors. due to FK
R: A professor may be the chair of many departments. due to FK
ManytoMany Relationships: Note: MDs must come in pairs.
Hint: A table does not have MDs if there is no manytomany relationship in this table.
A pair of MDs exists in a table if there is a manytomany relationship in this table.
A pair of MDs exists in a table, whose primary key PK has id fields.
: StudentID CourseID
: ProfessorID CourseID
: StudentID ProfessorID
DeptID ProfessorID
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