Actual Assignment: The Following is an example of how the assignment should be done: Question: Convert the following table to third normal form. Student (StudentNum (key), StudentName, NumCredits,...

1 answer below »
Attached is a copy of the assignment


Actual Assignment: The Following is an example of how the assignment should be done: Question: Convert the following table to third normal form. Student (StudentNum (key), StudentName, NumCredits, AdvisorNum, AdvisorName, (CourseNum, Description, Grade) ) where (CourseNum, Description, Grade) is a repeating group and given the following functional dependencies: StudentNum determines StudentName, NumCredits, AdvisorNum, AdvisorName. AdvisorNum determines AdvisorName. CourseNum determines Description. The combination of StudentNum and CourseNum determines Grade. Answer: Step 1. The relation is not in 1NF because it contains repeating groups. Convert to 1NF by making the determinant of the repeating group a part of the composite key: Student (StudentNum(key), StudentName, NumCredits, AdvisorNum, AdvisorName, CourseNum(key), Description, Grade) This relation is now in 1NF because it has no repeatin groups. FD1: StudentNum -> StudentName, NumCredits, AdvisorNum, AdvisorName. FD2: AdvisorNum -> AdvisorName. FD3: CourseNum -> Description. FD4: StudentNum, CourseNum->Grade. It violates 2NF because it contains partial dependency : i.e. StudentName is dependent only on StudentNum, which is only a portion of the primary key. Step 2. Convert 1NF to 2 NF by creating a relation for each subset of the primary key. Composite key (superkey) maintains relationship to each of its components (subkeys) as foreign key . Place the non-key attributes with their determinants, and assign names to newly created relations: Student (StudentNum(key), StudentName, NumCredits, AdvisorNum, AdvisorName) Course (CourseNum(key), Description) StudentCourse (StudentNum(key)(fk), CourseNum(key)(fk), Grade) Course and StudentCourse are in 2NF, and also in 3NF. The Student relation violates 3NF, because it contains a transitive dependency: a determinant AdvisorNum is not a candidate key. Step 3. Convert Student from 2NF to 3NF by splitting the relation that causes the problem: copy the determinant AdvisorNum and moving the attributes that depends on the determinant AdvisorNum and placing both in a separate table: (StudentNum (key), StudentName, NumCredits, AdvisorNum(fk)) (AdvisorNum(key), AdvisorName) Step 4. Put the entire schema together, giving the following: Student (StudentNum(key), StudentName, NumCredits, AdvisorNum(fk)) Advisor (AdvisorNum(key), AdvisorName) Course (CourseNum(key), Description) StudentCourse (StudentNum(key)(fk), CourseNum(key)(fk), Grade)
Answered Same DayMar 01, 2021

Answer To: Actual Assignment: The Following is an example of how the assignment should be done: Question:...

Ankit answered on Mar 01 2021
149 Votes
A college maintains details of its instructor’s subject area skills. These are represented in instructor relation as Un-normalized data:
Instructor (InstructorNumber, InstructorName, InstructorLevel, DepartmentCode, DepartmentName,SubjectCode,SubjectName,SubjectLevel)
Step 1.
Above relation is not in 1NF as it consists of repeating groups.
Now Convert above relation to 1NF by removing the repeating group in terms of composite key:
1NF
Instructor (InstructorNumber, InstructorName, InstructorLevel, DepartmentCode, DepartmentName)
Subject (InstructorNumber, SubjectCode,SubjectName,SubjectLevel)
Now relation is in 1NF because there are no repeating groups.
Functional dependency of above relation as below:
InstructorNumber - InstructorName, InstructorLevel, DepartmentCode,...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here