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_forwardWEEK 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 studentarrow_forwardLet's pretend you've been tapped to lead a JAD meeting. If you were in charge of a JAD session, make a list of 10 rules that all attendees have to follow.arrow_forward
- The Entity Relationship Data Model (Identify the primary key and the foreign key) Represent the different join(inner join, outer joins). Upload the diagram and result of your design query of joins. by using SQL applicationsarrow_forward( Make purchase, View items, Complete check out) Conversion sequence diagram as examplearrow_forwardNeed help on this review question.arrow_forward
- Name the types of interviews and explain them briefly.arrow_forwardHowever, there IS a relationship depicted in the ER diagram between the PROMOTION and the BOOKS tables. What kind of relationships do you think it is? Which commands did you use and what the results . you see?arrow_forwardSelect all managers whose firstname starts with letter M and department they lead have less than 10 employees. Present manager and employee count in the result set. Order result set by employee count in descending order.arrow_forward
- Need help with Question #4. Question #3 has been provided as a sample reference with work.arrow_forwardUse the same reasoning on the provided photo, please use the same process to show how a borrow ahead subtractor would be designedarrow_forwardSelect assessment method and create a digital rubrics for the method selectedarrow_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:Cengage