Answered step by step
Verified Expert Solution
Link Copied!

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 6 Q7.
Styles
The School database (with 4 entities and 2 relationships) is described and defined as follows. For Student entity, each student ID has last name, first name, GPA, his/her major Dept ID, and his/her 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 his/her 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 one-to-many and many-to-many relationships among those four entities in this database.
Note: Each foreign key (FK) will cause a one-to-many relationship. A primary key (PK) of two columns in a table will cause a many-to-many relationship between those two entities identified by those two primary keys (PK) columns.
One-to-Many Relationships:
R1: A professor may advise many students. (due to FK1)
R2: A dept may have many students majoring in this dept. (due to FK2)
R3: A dept may have many professors. (due to FK3)
R4: A professor may be the chair of many departments. (due to FK4)
Many-to-Many Relationships: (Note: MDs must come in pairs.)
Hint: A table does not have MDs if there is no many-to-many relationship in this table.
A pair of MDs exists in a table if there is a many-to-many relationship in this table.
A pair of MDs exists in a table, whose primary key (PK) has 2 id fields.
MD1: StudentID CourseID
MD2: ProfessorID CourseID
MD3: StudentID ProfessorID
MD DeptID ProfessorID
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

ISBN: 321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

What is a crude measure of effect?

Answered: 1 week ago

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago

Question

=+What information does the audience need?

Answered: 1 week ago