EBK CONCEPTS OF DATABASE MANAGEMENT
EBK CONCEPTS OF DATABASE MANAGEMENT
8th Edition
ISBN: 8220100706004
Author: Last
Publisher: Cengage Learning US
Question
Book Icon
Chapter 6, Problem 9RQ

(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
Requirement analysis: Course evaluation must have a student, the students relation contains a unique student id, full name for each student, email address, phone number, address and date of birth. For each course, the courses contain course id, course name and credit. Each student can take many courses. For each Instructor, the instructors contain id, name and email. Each instructor can instruct many courses. For each section, the sections contain section id, year and semester. Students are able to evaluate the current courses.   ER-diagram: Please complete the ER diagram using Microsoft word.   Instructor ID Full name Email  Student ID Full name  Email Phone number Address Date of birth   Course ID Course title  Description   Credit  Section  ID Year  Semester  Please Complete the diagram on MS word.
2. Can you describe the below operation with example? (Give some data in section table and then describe). from section where semester = 'Fall' and year = 2009) E (select course_id Entersect (select course_id from section where semester = 'Spring' and year = 2010) except (select course_id from section where semester = 'Summer' and year = 2010)
Explain the two eay selection form.
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