 
  
  
   
 street ccity, but no non-trivial functional dependencies.
 street ccity, but no non-trivial functional dependencies.
 is in 4NF with respect to a set
 is in 4NF with respect to a set  of functional
and multivalued dependencies if for all multivalued dependencies in
 of functional
and multivalued dependencies if for all multivalued dependencies in  of the form
 of the form  ,
where
,
where  and
 and  , at least one of the
following hold:
, at least one of the
following hold:
 is a trivial multivalued dependency.
 is a trivial multivalued dependency.
 is a superkey for scheme
 is a superkey for scheme  .
.
 holding on
 holding on  , where
, where
 is not a superkey.
 is not a superkey.
 implies
 implies  ,
by the replication rule,
,
by the replication rule,  cannot be in 4NF.
 cannot be in 4NF.

 loan# is a nontrivial multivalued dependency and cname
is not a superkey for the scheme.
 loan# is a nontrivial multivalued dependency and cname
is not a superkey for the scheme.

 be a relation scheme and
 be a relation scheme and  a set of functional and multivalued dependencies on
 a set of functional and multivalued dependencies on  .
.
 and
 and  form a decomposition of
 form a decomposition of  .
.
 :
:

 into
two schemes
 into
two schemes  and
 and  , one of the two above dependencies must hold.
, one of the two above dependencies must hold.
 be a relation scheme.
 be a relation scheme.
 be a decomposition of
 be a decomposition of  .
.
 be the set of functional and multivalued dependencies holding on
 be the set of functional and multivalued dependencies holding on  .
.
 to
 to  is the set
 is the set  consisting of:
consisting of:
    that include only attributes of
 that include only attributes of  .
.
    where
   where  and
 and  is in
 is in  .
.
    is dependency preserving
with respect to a set
 is dependency preserving
with respect to a set  of functional and multivalued dependencies if for every set of relations
 of functional and multivalued dependencies if for every set of relations
 such that for all
 such that for all  ,
,
 satisfies
 satisfies  , there exists a relation
, there exists a relation  that satisfies
 that satisfies  and for which
and for which  for all
 for all  .
.
 there exists a relation
there exists a relation  on the entire scheme
 on the entire scheme  that the decomposed
schemes can be derived from, and that
 that the decomposed
schemes can be derived from, and that  also satisfies the functional and multivalued dependencies.
 also satisfies the functional and multivalued dependencies.
 .
.

 is not in 4NF, as we have
 is not in 4NF, as we have  and
 and  is not a superkey.
 is not a superkey.

 is now in 4NF, but
 is now in 4NF, but  is not.
 is not.
 (how did we get this?),
our algorithm then decomposes
 (how did we get this?),
our algorithm then decomposes  into
 into

 is now in 4NF, but
 is now in 4NF, but  is not.
 is not.
 is in
 is in  (why?) then the restriction
of this dependency to
 (why?) then the restriction
of this dependency to  gives us
 gives us  .
.
 into
into

 and
 and  .
.
  
Figure 6.4:   Projection of relation  onto a 4NF decomposition of
 onto a 4NF decomposition of  .
.
 .
.
 to
 to  is
 is  and some trivial
dependencies.
 and some trivial
dependencies.
 satisfies
 satisfies  as there are no pairs
with the same
 as there are no pairs
with the same  value.
 value.
 satisfies all functional and multivalued dependencies since no two tuples have the same
value on any attribute.
 satisfies all functional and multivalued dependencies since no two tuples have the same
value on any attribute.
 and
 and  .
.
 .
.
 on
 on  that satisfies
 that satisfies
 and decomposes into
 and decomposes into  and
 and  .
.
 .
.
 does not satisfy
 does not satisfy  .
.
 containing
 containing  and satisfying
 and satisfying  must 
include the tuple
 must 
include the tuple  .
.
 includes a tuple
 includes a tuple  that
is not in
 that
is not in  .
.
 .
.
  
Figure 6.5:   A relation  that does not satisfy
 that does not satisfy  .
.
 
 
  
 