Dbms Unit 3 Database Design and Normalization
Dbms Unit 3 Database Design and Normalization
o Set of a ributes using which we can iden fy each tuple
uniquely is called Super key.
o Let X be a set of a ributes in a Rela on R , if X+(Closure of
X) determines all a ributes of R then X is said to be Super
key of R .
o There should be at least one Super key in every rela on.
o Minimal set of a ributes using which we can iden fy each
tuple uniquely is called Candidate key. A super key is
called candidate key if it’s number of proper subset is a
super key. Also called as MINIMAL SUPER KEY.
o There should be at least one candidate key.
1) Rela on R is in 2NF if
a) R should be in 1 NF.
b) R should not contain any Par al dependency. (that is every non-
prime a ribute should be fully dependent upon candidate key)
2) Example:-
Q:- R(A, B, C) => AB→C (AB is a candidate key), B→C(Par al
dependency)
3) Example:-
Q:- R(A, B, C) A →B (A is candidate key), B →C(transi ve
dependency)
"The decomposiƟon of
relaƟon R into R1and R2 is lossless when the join of R1 and R2
yield the same relaƟon as in R." which guarantees that the
spurious (extra or less) tuple generaƟon problem does not
occur with respect to the relaƟon schemas created aŌer
decomposiƟon.