Boyce-Codd Normal Form (BCNF)

 Boyce-Codd Normal Form (BCNF)

Boyce-Codd Normal Form (BCNF) is an advanced level of normalization in relational database design. It is a stronger version of Third Normal Form (3NF) and is used to eliminate certain types of redundancy and anomalies that 3NF may not fully resolve.

A relation is said to be in BCNF if, for every non-trivial functional dependency A → B, attribute A must be a super key of the relation.

🔹 In Simple Terms

If a determinant (left side of a functional dependency) is not a super key, then the table violates BCNF.


🔹 Why BCNF is Needed

Sometimes, a table may satisfy 3NF but still have redundancy due to overlapping candidate keys. BCNF removes such problems by ensuring that only super keys determine other attributes.


🔹 Example

Consider a relation:

R(Student, Subject, Teacher)

Functional Dependencies:

  • (Student, Subject) → Teacher

  • Teacher → Subject

Here, Teacher → Subject violates BCNF because Teacher is not a super key. To satisfy BCNF, the table must be decomposed into smaller tables.


🔹 Advantages of BCNF

  • Removes redundancy

  • Prevents update, insertion, and deletion anomalies

  • Improves database consistency


BCNF is an important normalization step that ensures a well-structured and efficient relational database design.

 

CLICK HERE

Comments

Popular posts from this blog

Views in Relational Databases

SQL

EMBEDDED SQL