Functional dependencies:
Functional dependency is a term in the relational
- 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.
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
A Guide to SQL
- List the changes you would need to make to your answer for Question 11 if the requirements change so that you must store the year and the semester in which a student took a course and received a grade.arrow_forwardThe solutions provided didn't work for any of the questions. Please provide different solutions for the 3 questionsarrow_forwardGiven the following numbers that represent students' grades in a given course, find the following: 90, 85, 75, 45, 95, 66, 74, 83, 66, 57 . Arithmetic Mean Trimmed Mean Mode Variance Median Standard Deviation Range Plot the grades using Line Chart Use Excel/SPSS to find all previous metrics. Write your own notes www.clipartef.comarrow_forward
- From the employee table, calculate the average compensation for each job category where the employee has 16 or more years of education. Display the job and average compensation in the result set. Exclude people who are clerks Make sure to include salary, commission and bonus when looking at employee compensation Order the output by the average salary in ascending orderarrow_forwardhelp me to answer the question below tutorsssarrow_forwardSelect all the staff full names with the customer full names of the consignments they have worked on. Include staff that have not worked on any consignmentsarrow_forward
- Select the best answer from the given choices: Using the company schema, when creating the "works_on" table, the primary key should be specified as All of the answers are correct primary key (essn, pno) primary key (essn), primary key(pno) primary key (essn) and primary key(pno)arrow_forwardElapsed time, between initiating a query and receiving a response is called Turnaround time explain?arrow_forwardHow is the order of characteristics in a result table altered?arrow_forward
- What about the students averagearrow_forwardUse the query box below to answer the questions, saving your query for each question. When you are done, submit your exam for grading. establishment license_no dba_name aka_name facility_type risk_level address city state zip latitude longitude employee employee_id- first_name last_name address city state zip phone title salary supervisor violation inspection_id point_id fine inspector_comment inspection inspection_id inspection_date inspection_type results employee_id license_no followup_to inspection_point point_id Description category code fine point_level List the inspections (inspection_id) with their date and type for all inspections that had a violation in the category of personnel' for January 2016. Also print the description of the inspection_point that was violated.arrow_forwardList the department name and its instructor’s average salary in which the instructors teach a course in the Spring 2010 semester, and where the average salary of the instructors is more than $40,000arrow_forward
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning