BCNF

Boyce-Codd Normal Form

BCNF is a slightly stricter 3NF: for every functional dependency A → B, A must be a candidate key. It fixes rare cases where 3NF still allows redundancy because of overlapping candidate keys.

Example

Rules: each student takes a subject from one teacher, and each teacher teaches only one subject. Key = (Student, Subject).

StudentSubjectTeacher
AshaMathMr. Rao
VikramMathMr. Rao
AshaPhysicsMs. Iyer

Teacher → Subject, but Teacher is not a candidate key, so the table is in 3NF but not BCNF ("Mr. Rao teaches Math" is repeated). Split it into (Teacher, Subject) and (Student, Teacher).

Higher Normal Forms

4NF (multi-valued dependencies) and 5NF (join dependencies) exist, but in practice most designs aim for 3NF/BCNF.