Chapter 15
Chapter 15
CHAPTER 15
Relational Database Design Algorithm
and Further Dependencies
Dr. Najma Ismat
[email protected]
◼ Union: If X → Y and X → Z,
then X → YZ
◼ Psuedotransitivity: If X → Y
and WY → Z, then WX → Z
The Closure Of Functional Dependency means the complete set of all possible
attributes that can be functionally derived from given functional dependency using
the inference rules known as Armstrong’s Rules.
Note that each closure above has an interpretation that is revealing about the
attribute(s) on the left-hand-side. The closure of { Classid } + is the entire
relation CLASS indicating that all attributes of the relation can be determined
from Classid and hence it is a key.
1. Set F:=E.
2. Replace each functional dependency X → {A1, A2, ..., An} in F by
the n functional dependencies X →A1, X →A2, ..., X → An.
3. For each functional dependency X → A in F
for each attribute B that is an element of X
if { {F – {X → A} } ∪ { (X – {B} ) → A} } is equivalent to F
then replace X → A with (X – {B} ) → A in F.
(* The above constitutes a removal of the extraneous
attribute B from X *)
4. For each remaining functional dependency X → A in F if {F – {X → A}
} is equivalent to F, then remove X → A from F.
(* The above constitutes a removal of the redundant dependency
X → A from F *)