Lab 9-Solution Vu
Lab 9-Solution Vu
Normalization (3NF)
(Solution)
Problem Statement:
Following relation is already in Second Normal Form. You are required to convert it into
Third Normal Form using the techniques you have studied so far.
CustomerID Name SalesMan Region
11 Hamza Khalid South
21 Shoaib Umair West
31 Shahbaz khalid South
44 Salman Zulfiqar East
51 Rizwan Umair West
61 Farooq Uzair North
Solution:
Transitive dependency exists if a non-key attribute depends on any other non-key attribute.
The transitive dependency can be removed by decomposing the above relation into two
relations as follows:
CustomerID Name SalesMan
11 Hamza Khalid
21 Shoaib Umair
31 Shahbaz khalid
44 Salman Zulfiqar
51 Rizwan Umair
61 farooq Uzair
SALES (CustomerID, Name, SalesMan)
SalesMan Region
Khalid South
Umair West
Zulfiqar East
Uzair North
Both relations are now in 3NF. There is no transitive dependency in these relations.
The determinant attribute in transitive dependency becomes the primary key in SALESMAN
relation.