DBMS Unit-3
DBMS Unit-3
• X is a super key.
• Y is a prime attribute, i.e., each element of Y is part of some candidate key.
3 NF
• Transitive dependency – A functional dependency A->B is called
transitive if A,B are non prime attributes.
• A relation is in 3NF if-
• It is in 2NF
• There is no partial dependency
• For every dependency A->B, if B is a prime attribute then it can be said
that relation has no partial dependency and transitive dependency,
then relation will always be in 3NF
Practice Questions
Boyce Codd normal form (BCNF)
• BCNF is the advance version of 3NF. It is stricter than 3NF.
• A table is in BCNF if every functional dependency X → Y, X is the super
key of the table.
• For BCNF, the table should be in 3NF, and for every FD, LHS is super
key.
• Example: Let's assume there is a company where employees work in
more than one department.
• Note- 3NF always ensures dependency preservation but BSNF not
• Both 3NF and BCNF ensures lossless decomposition
Fourth normal form (4NF)