CONCEPTS OF DATABASE MANAGEMENT
CONCEPTS OF DATABASE MANAGEMENT
9th Edition
ISBN: 9780357323366
Author: Pratt
Publisher: CENGAGE C
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!
Students have asked these similar questions
Which tool takes the 2 provided input datasets and produces the following output dataset? Input 1: Record First Last Output: 1 Enzo Cordova Record 2 Maggie Freelund Input 2: Record Frist Last MI ? First 1 Enzo Last MI Cordova [Null] 2 Maggie Freelund [Null] 3 Jason Wayans T. 4 Ruby Landry [Null] 1 Jason Wayans T. 5 Devonn Unger [Null] 2 Ruby Landry [Null] 6 Bradley Freelund [Null] 3 Devonn Unger [Null] 4 Bradley Freelund [Null] OA. Append Fields O B. Union OC. Join OD. Find Replace Clear selection
What are the similarities and differences between massively parallel processing systems and grid computing. with references
Modular Program Structure. Analysis of Structured Programming Examples. Ways to Reduce Coupling. Based on the given problem, create an algorithm and a block diagram, and write the program code: Function: y=xsin⁡x Interval: [0,π] Requirements: Create a graph of the function. Show the coordinates (x and y). Choose your own scale and show it in the block diagram. Create a block diagram based on the algorithm. Write the program code in Python. Requirements: Each step in the block diagram must be clearly shown. The graph of the function must be drawn and saved (in PNG format). Write the code in a modular way (functions and the main part should be separate). Please explain and describe the results in detail.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning