Normalization & Decomposition





Answer & solution
Answer: Keep STUDENTS,COURSES,ENROLL; replace TEACH with TEACHER(tno key,tname) and TEACHES(tno,cno composite key). (no official key was published)
Separate teacher facts from teaching assignments. Use TEACHER(tno,tname) with primary key tno, and TEACHES(tno,cno) with primary key (tno,cno). Retain the other three relations unchanged. The dependency tno→tname now has a key determinant in TEACHER; no supplied nontrivial non-key dependency remains in TEACHES. Thus both components are BCNF, stronger than the requested 3NF.
This decomposition is lossless under the given FD. Its intersection is {tno}, which determines all of TEACHER. More concretely, every teaching pair joins to its unique teacher name, and rows sharing a teacher number cannot acquire different names because of the FD. Projecting a valid original TEACH relation and joining the projections therefore reconstructs it without spurious combinations of teacher names and assignments.
It also preserves the relevant dependency locally in TEACHER. Separating tname into a relation with only cno instead would attach a teacher name to a course rather than its determining teacher number, and would not preserve the intended dependency. Identical names across different teacher numbers remain permitted.