DuongTrungKien SE180067 Lab2
DuongTrungKien SE180067 Lab2
1,Consider the relation and the appropriate functional dependencies are listed below, indicate the normal
form for that relation. If the relation is not in third normal form, decompose it into the 3NF relation.
-
TechNo: A, TechName: B, DeptId: C, Department: D, JobNo: E, Date: F, SchoolID: G, School: H,
Hoursworked: I
=> FD’s: A -> BC, C -> D, E -> FG, G -> H, AE -> I
=> Key: {AE}.
=> Already 1NF.
TechN
o JobNo Hoursworked
298 1002 2.5
298 1003 5.5
345 1002 3
345 3440 1.5
345 1480 3
380 3670 4
380 3440 2
300 1450 1
300 1480 3
=>3NF: R1(A,B,C), R2(E,F,G), R3(A,E,I), R4(C,D), 320 3440 4
R5(G,H) 320 1002 2.5
320 3670 2
TechNo TechName DeptId R3
298 Walls, Ian 1
TechNo JobNo Hoursworked
298 1002 2.5
298 1003 5.5
345 Smith, Alan 2 345 1002 3
380 Jackson, Bob 3 345 3440 1.5
300 Jones, Joe 2 345 1480 3
320 Young, Jill 3 380 3670 4
380 3440 2
R1 300 1450 1
300 1480 3
JobNo Date SchoolID 320 3440 4
1002 12/9/07 192 320 1002 2.5
1003 12/9/07 125 320 3670 2
3440 18/9/07 346 R3
1480 15/9/07 192
3670 19/9/07 560
1450 15/9/07 125
R2