You are on page 1of 35

Infinity Batch

Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
BCNF
Infinity Batch
Multivalued dependency
• X→→Y is a multivalued dependency if there exist more then one
tuple with same value of X like t1(X) = t2(X) then there should exist
following three condition :
1. t1(X) =t2(X)=t3(X)=t4(X)
2. t1(Y)=t3(Y) and t2(Y) = t4(Y)
3. t2(Z) = t3(Z) and t1(Z) = t4(Z)
Infinity Batch

CNAME AUTHOR INSTRUCTOR


DBMS KORTH RAJ
DBMS NAVATHE RAHUL
DBMS KORTH RAHUL
DBMS NAVATHE RAJ

CNAME→→AUTHOR is MVD.
Infinity Batch

CNAME AUTHOR INSTRUCTOR


DBMS KORTH RAJ
DBMS NAVATHE RAHUL
DBMS KORTH RAHUL
DBMS NAVATHE RAJ
OS GALVIN RAM

CNAME→→AUTHOR is MVD.
Infinity Batch

CNAME AUTHOR INSTRUCTOR


DBMS KORTH RAJ
DBMS NAVATHE RAHUL
DBMS KORTH RAHUL
DBMS NAVATHE RAJ
OS GALVIN RAM
OS SCHAUM RAVI

NOW CNAME→→AUTHOR is not MVD.


Infinity Batch
IMP POINTS
• Functional dependency is structure generated dependency but
multivalued dependency is tuple generated dependency.
• All functional dependency is multivalued but vice versa is not true.
• If X→→Y is MVD then X→→R-Y is also MVD.
Infinity Batch
Types of MVD
• Multivalued dependency X→→Y

Trivial ( if Y is subset of X or X U Y = R) like A→→A , AB→→A

Non Trivial (X ⋂ Y = Ø ) like A→→B, A→→BC

Semi Trivial (if Y is not subset of X and X ⋂ Y ≠ Ø ) like


AB→→BC
Infinity Batch
Inference Rules
Reflexivity-
• If B is a subset of A, then A →→ B always holds.

Transitivity-
• If A →→ B and B →→ C, then A →→ C always holds.

Decomposition-
• If A →→ BC, then A →→ B and A →→ C always holds.

Additive/union-
• If A →→ B and A →→ C, then A →→ BC always holds.
Infinity Batch
Augmentation-
• If A →→ B, then AC →→ BC always holds.

Composition-
• If A →→ B and C →→ D, then AC →→ BD always holds.

Pseudo Transitivity –
If A→→B and BC→→D , then AC→→D holds.
Infinity Batch
Consider the following implications relating to functional and
multivalued dependencies given below, which may or may not be
correct.
i. If A ↠ B and A ↠ C then A → BC

ii. If A → B and A → C then A ↠ BC

iii. If A ↠ BC and A → B then A → C

iv. If A → BC and A → B then A ↠ C

Exactly how many of the above implications are valid?


(A) 0 (B) 1 (C) 2 (D) 3
Infinity Batch
4NF
• A Relation with trivial MVD is in 4NF.
• If X →→ Y is non trivial then X must be Key(PK/CK/SK).
Infinity Batch
Example : is in 4NF or not ?

CNAME AUTHOR INSTRUCTOR


DBMS KORTH RAJ
DBMS NAVATHE RAHUL
DBMS KORTH RAHUL
DBMS NAVATHE RAJ
Infinity Batch
Example :
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch
Infinity Batch

You might also like