Boyce-Codd normal form with example

December 4, 2026 · Team EasyExamNotes · 2 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CS-502 DBMS December 2024 solved question paper

RGPV Previous Year Examination Question

B.Tech. V Semester | CS-502 (GS) | December 2024 | 5(b)

Question (restated): Describe Boyce–Codd normal form using an example.

Answer

Definition

Boyce–Codd normal form (BCNF) is a stronger version of third normal form. A relation is in BCNF if, for every nontrivial functional dependency X → Y that holds in the relation, X is a superkey. A dependency is nontrivial when Y is not a subset of X.

Worked example

Consider Teaching(Student, Course, Instructor). Assume each student taking a course has one instructor, and each instructor teaches only one course. The functional dependencies are:

(Student, Course) → Instructor
Instructor → Course

The candidate keys are (Student, Course) and (Student, Instructor). Instructor alone does not determine Student and is therefore not a superkey. The dependency Instructor → Course violates BCNF, although Course is a prime attribute and the relation satisfies 3NF under the stated dependencies.

Student Course Instructor
Amit DBMS I1
Priya DBMS I1
Rahul OS I2

The course taught by I1 is repeated. Changing it requires multiple updates; deleting the last student taught by I2 loses the instructor-course association.

BCNF decomposition

InstructorCourse(Instructor, Course)
StudentInstructor(Student, Instructor)

Instructor is a key of InstructorCourse. StudentInstructor has the composite key (Student, Instructor) and no other nontrivial dependencies under the assumptions. Both relations satisfy BCNF. The decomposition is lossless because the common attribute Instructor determines InstructorCourse. However, the original dependency (Student, Course) → Instructor is not directly preserved in either relation and may require a join or additional enforcement.

3NF versus BCNF

3NF permits a non-superkey determinant when the dependent attribute is prime; BCNF does not. Every BCNF relation is in 3NF, but the converse is not true. BCNF eliminates more redundancy, while 3NF may be preferred when dependency preservation is essential.

Further reading

Silberschatz, Korth and Sudarshan, Database System Concepts; Elmasri and Navathe, Fundamentals of Database Systems.

← RGPV CS-502 DBMS December 2024 solved question paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion