Normalization & Decomposition




Answer & solution
Answer: No: TEACH violates 3NF through tno→tname. (no official key was published)
Step through it (4 parts)
Treat each listed relation separately and use the supplied FDs as the schema constraints. In STUDENTS, rollno is a key and determines the other attributes; COURSES likewise has key cno. ENROLL's determinant (rollno,cno) is its key. These three relations therefore satisfy BCNF, and in particular 3NF, under the stated dependencies.
TEACH has declared composite key (tno,cno). The dependency tno→tname is nontrivial, but tno alone does not determine cno, so it is not a superkey. The dependent attribute tname is not a member of the candidate key and is nonprime. This violates the 3NF test that every nontrivial FD have a superkey determinant or prime right-side attribute. Indeed it is already a partial dependency of a nonprime attribute on part of the composite key, violating 2NF.
Do not infer that tno is a key simply because it identifies a teacher: a teacher can occur in several teaching rows, one per course. No additional FD tno→cno is supplied. If such a different constraint were imposed the answer could change, but it is not part of this schema.