Concepts of Database Management
Concepts of Database Management
9th Edition
ISBN: 9781337093422
Author: Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher: Cengage Learning
Question
Book Icon
Chapter 6, Problem 8RQ

(a)

To determine

Change the requirements specified in question 7 if the student must be assigned an advisor who is in the department in which the student is majoring.

(a)

Expert Solution
Check Mark

Explanation of Solution

The given DBDL in question 7 is as follows:

Student(StudentNum_,StudentName,CourseCode,AdvisorNum)AK StudentNameFK CourseCodeCourseFK AdvisorNumAdvisor

Advisor(AdvisorNum_,AdvisorName,DepartmentNum)AK AdvisorNameFK DepartmentNumDepartment

Department(DepartmentNum_,DepartmentName)AK DepartmentName

Course(CouseCode_,CourseName,CourseDescription)AK CourseNameSK CourseDescription

StudentAdvisor(StudentNum_,AdvisorNum_)FK StudentNumStudentFK AdvisorNumAdvisor

The changes in the DBDL after assigning an advisor who is in the department in which the student is majoring is as follows:

Student(StudentNum_,StudentName,CourseCode)

AK StudentNameFK CourseCodeCourse

StudentAdvisorDept (StudentNum_AdvisorNum_, DepartmentNum)FKAdvisorNumAdvisorFKDepartmentNumDepartment

Advisor(AdvisorNum_,AdvisorName,DepartmentNum)AK AdvisorNameFK DepartmentNumDepartment

Department(DepartmentNum_,DepartmentName)AK DepartmentName

Course(CouseCode_,CourseName,CourseDescription)AK CourseNameSK CourseDescription

Since the department from which the student is majoring and the department of the advisor must be the same. Therefore, a new relation studentAdvisordept should be created in which each combination of StudentNum and AdvisorNum will be related to a common department.

(b)

To determine

Change the requirements specified in question 7 if the student’s advisor does not necessarily have to be in the department in which the student is majoring.

(b)

Expert Solution
Check Mark

Explanation of Solution

The given DBDL in question 7 is as follows:

Department(DepartmentNum_,DepartmentName)AK DepartmentName

Advisor(AdvisorNum_,AdvisorName,DepartmentNum)AK AdvisorNameFK DepartmentNumDepartment

Course(CouseCode_,CourseName,CourseDescription)AK CourseName

Student(StudentNum_,StudentName,CourseCode,AdvisorNum,DepartmentNum)AK StudentNameFK CourseCodeCourseFK AdvisorNumAdvisorFK DepartmentNumDepartment

StudentAdvisor(StudentNum_,AdvisorNum_)FK StudentNumStudentFK AdvisorNumAdvisor

The changes in the DBDL after assigning an advisor who is not required to be in the department in which the student is majoring is as follows:

Department(DepartmentNum_,DepartmentName)AK DepartmentName

Advisor(AdvisorNum_,AdvisorName,DepartmentNum)AK AdvisorNameFK DepartmentNumDepartment

Course(CouseCode_,CourseName,CourseDescription)AK CourseName

Student(StudentNum_,StudentName,CourseCode,AdvisorNum,DepartmentNum)AK StudentName

FK CourseCodeCourseFK AdvisorNumAdvisorFK DepartmentNumDepartment

Since the department from which the student is majoring and the department of the advisor need not be the same. So, the DeprtmenttNum in Student table will refer to the DepartmentNum in Department table.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY