Normalization in database systems | Steps for Normalization| Concept of Normalization | Do's and Dont's of Normalization | Normal forms | Partial dependencies | Transitive dependency | Key tips to remeber | Tricks to break a table
STEP-2: REMOVE PARTIALDEPENDENCIES(2 NF)
ALL NONKEY ATTRIBUTES SHOULD DEPEND ON THE WHOLE PRIMARY
KEY NOT PART OF IT. Let’s analyze:
•StudentName, CourseID, CourseLength depend only on StudentID.
•UnitName, Lecturer depend only on UnitCode.
5.
STUDENT_UNIT IS MADEBECAUSE IF WE TRY TO INCORPORATE IT
INTO THE STUDENT TABLE IT WILL CAUSE REDUNDANCY BEACAUSE
FOR ONE VALUE OF STUDENT_ID THERE ARE TWO VALUES OF
UNIT_CODE
KEY TIP:
6.
STEP-3: REMOVE TRANSITIVE
DEPENDENCIES(3 NF)
Non-key attributes should only depend on the primary key.
Now check each table:
•Student: StudentID StudentName, CourseID, CourseLength
→
But we can see: CourseID CourseLength
→
So, there’s a transitive dependency.