← RGPV CS-502-CBGS DBMS June 2020 solved question paper
RGPV CS-502-CBGS | June 2020 | Q6(a) | 7 marks
Question: Explain why 4NF is more desirable than BCNF with the help of an example.
Answer

BCNF requires every determinant of a nontrivial functional dependency to be a superkey. However, functional dependencies alone cannot express all forms of redundancy. Fourth normal form (4NF) additionally addresses nontrivial multivalued dependencies. A relation is in 4NF if for every nontrivial MVD X ↠ Y, X is a superkey.
Consider StudentSkillLanguage(Student, Skill, Language), where skills and languages are independent for each student. Assume no nontrivial functional dependencies. The candidate key is the combination of all three attributes, so the relation is in BCNF. Yet Student ↠ Skill and Student ↠ Language hold, and Student is not a superkey. Therefore the relation violates 4NF.
For Asha, two skills and two languages require four tuples. Adding a third language requires two new tuples, one per skill. Deleting all tuples for a skill can accidentally remove information about languages if no other skills remain. These anomalies arise from storing independent multivalued facts together.
Decompose the relation into StudentSkill(Student,Skill) and StudentLanguage(Student,Language). The first table stores two skill facts and the second stores two language facts. Their natural join on Student reconstructs the four original combinations because the MVD guarantees independence. Adding a language now requires only one insertion. Both binary relations satisfy 4NF under the stated dependencies.
Every 4NF relation is in BCNF because every FD implies an MVD. The converse is false, as this example demonstrates. 4NF is more desirable when independent multivalued facts occur, although decomposition can require additional joins during retrieval.
| Student | Skill | Language |
|---|---|---|
| Asha | Java | Hindi |
| Asha | Java | English |
| Asha | Python | Hindi |
| Asha | Python | English |
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion