EBK CONCEPTS OF DATABASE MANAGEMENT
EBK CONCEPTS OF DATABASE MANAGEMENT
9th Edition
ISBN: 8220106831816
Author: Last
Publisher: CENGAGE L
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
Refer to page 120 for problems on web development. Instructions: Design a responsive webpage using HTML, CSS, and JavaScript for the given layout. Ensure proper rendering across devices with different screen sizes. ⚫ Test responsiveness using developer tools and explain design decisions. Link: [https://drive.google.com/file/d/1wKSrun-GlxirS3IZ9qo Hazb9tC440AZF/view?usp=sharing]
Refer to page 80 for problems on software development processes. Instructions: • Develop a sprint plan for a given project, including user stories and acceptance criteria. • Simulate one sprint, showing task progress and sprint retrospective outcomes. • Analyze team velocity and recommend improvements. Link [https://drive.google.com/file/d/1wKSrun-GlxirS3IZ9qoHazb9tC440 AZF/view?usp=sharing]
EXPLORER OPEN EDITORS Welcome com.py... Welcome xcom.py 2 ✓ DB com.py com.sql 6 8 9 10 11 12 13 14 15 16 17 com.py db class Rectangle: def _init_(self, length, width): self.length-length self.width-width def area(self): return self.width *self.length def perimeter(self): return 2+self.width*self.length y=Rectangle(5,1) print(y.area) Why does an error appear in the code print(y.perimeter) PROBLEMS OUTPUT TERMINAL DEBUG CONSOLE PORTS I > OUTLINE > TIMELINE 0A4 0 self.width *self.length AAAA NameError: name 'self' is not defined PS C:\Users\hp\Desktop\db> & C:/Users/hp/AppData/Local/Microsoft/WindowsApps/python3.12.exe c:/Users/hp/Desktop/db/com.py Traceback (most recent call last): File "c:\Users\hp\Desktop\db\com.py", line 1, in class Rectangle: File "c:\Users\hp\Desktop\db\com.py", line 7, in Rectangle self.width *self.length ^^^^^ NameError: name 'self' is not defined PS C:\Users\hp\Desktop\db> Ln 17, Col 1 Spaces: 4 UTF-8 CRLF (Python 3 A ENG
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
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