A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
Question
Book Icon
Chapter 2, Problem 16RQ
Program Plan Intro

Functional dependencies:

Functional dependency is a term in the relational database theory which refers to a constraint that is located in between the two sets of attributes in a relation from a database. The functional dependencies of the given database are as follows.

  • DEPARTMENT_NUM à DEPARTMENT_NAME
  • ADVISOR_NUM à ADVISOR_LAST_NAME, ADVISOR_FIRST_NAME, DEPARTMENT_NUM
  • COURSE_CODE à DESCRIPTION
  • STUDENT_NUM à STUDENT_LAST_NAME, STUDENT_FIRST_NAME, ADVISOR_NUM
  • STUDENT_NUM, COURSE_CODE à GRADE

Relations:

The term relation refers to the relationship between the data represented in a row-column format. The relative relations for the given database table is as follows:

  • DEPARTMENT (DEPARTMENT_NUM, DEPARTMENT_NAME)
  • ADVISOR (ADVISOR_NUM, ADVISOR_LAST_NAME, ADVISOR_FIRST_NAME, DEPARTMENT_NUM)
  • COURSE (COURSE_CODE, DESCRIPTION)
  • STUDENT (STUDENT_NUM, STUDENT_LAST_NAME, STUDENT_FIRST_NAME, ADVISOR_NUM)

 For the database, a new relation is defined as it is mentioned that an advisor can advise any number of students but each student has only one advisor. Therefore, it can be defined as follows:

 STUDENT_COURSE (STUDENT_NUM, COURSE_CODE, GRADE)

The above relations are defined for the condition when an advisor can advise any number of students but the student can have only one advisor. Therefore, it clearly represents that the relation between the advisor and the student is many-to-one relation.

Blurred answer
Students have asked these similar questions
Using the AND or OR statement, filter the employee table for employees who live in the city Lethbridge or have IT within their title.  Identify the first name of the 2nd record.     Robert Laura Michael King
Determine the results of the below query. Explain how the result was calculated. SELECT TeamMember ID, SUM (Duration) FROM Task WHERE Duration > 1 GROUP BY TeamMember ID;
WEEK 4 ASSIGNMENT   Complete the following exercises: Using your student table, what is the average GPA? Using your student table, what is the minimum GPA? Explain why the following select statement is incorrect (your answer should be limited to no more than a few sentences): SELECT COUNT(first_name) FROM student Explain the following select statement (your answer should be limited to no more than a few sentences): SELECT MIN(DISTINCT gpa) FROM student
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
MIS
Computer Science
ISBN:9781337681919
Author:BIDGOLI
Publisher:Cengage
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning