"Om Swastiastu"
STEP 1: Remove the repeating group to convert it to first normal form, yielding:
The table is now in first normal form because it has no repeating groups. It is not, however, in second normal form, because StudentName, for example, is dependent only on StudentNum, which is only portion of primary key.
STEP 2: Convert the first normal form table to second normal form. First, for each subset of the primary key, start a table with that subsets as its key, yielding:
(CourseNum,
(StudentNum, CourseNum,
Next, place the rest of the columns with the smallest collection of columns on which they depend, giving:
(CourseNum, Description)
(StudentNum, CourseNum, Grade)
Finally, assign names to each of the newly created tables:
Course (CourseNum, Description)
StudentCourse (StudentNum, CourseNum, Grade)
Although this table are all in second normal form, Course and StudentCourse are also in third normal form. The Student table is not in third normal form, however, because it contains a determinant (AdvisorNum) that is not a candicate key.
STEP 3: Convert the secont normal form Student table to third normal form by removing the column that depends on the determinant AdvisorNum and placing it in a separate table.
(AdvisorNum, AdvisorName)
STEP 4: Name these tables and put the entire collection together, giving:
Advisor(AdvisorNum, AdvisorName)
Course(CourseNum, Description)
StudentCourse(StudentNum, CourseNum, Grade)
That is the way how to convert table into third normal form. I hope it helps. :-)
"Om Santhi, Santhi, Santhi, Om"
Comments:
Post a Comment