You are on page 1of 7

Concept of closure

and derivable
Functional dependency
Adatbázisrendszerek és alkalmazásaik
Explicit and implicit dependency
F: set of functional dependencies above R relational
schema.
The schema designer gives just semantically obvious
functional dependencies.
In general there are other functional dependencies
between different attributes.
These are derivable or follow from functional
dependencies of F.

Adatbázisrendszerek és alkalmazásaik >> Funkcionális függések


Explicit and implicit dependency
Impossible to give all dependencies for a concrete
relation
For example:
Onum → Ovez_szsz
Ovez_szsz → Ovez_phone Onum → Ovez_phone
This is a derived functional dependency, no have to give with
prev. noted functional dependencies
Closed: contain all derivable dependencies from F set

Adatbázisrendszerek és alkalmazásaik >> Funkcionális függések


Definition of closure

Closure of F: set of dependencies which contain all


dependencies of F with derivable dependencies from F.
Mark: F+

For example:
F={Dnum →DManager_SSn,DManager_SSn→DManager_Phone}
F+ = {Dnum →DManager_SSn,
DManager_SSn→DManager_Phone, Dnum→DManager_Phone}

Adatbázisrendszerek és alkalmazásaik >> Funkcionális függések


Derivation
X → Y functional dependency is derivable from F set of
dependencies of R if X → Y is in all r relations of R
● When r is true in F dependency then X → Y is also true in r.
● F+ is closure of F and it’s the set of the all derivable functional
dependencies from F.
● Systematic method:
introduction of derivation rules (next lesson).
● F ⊨ X → Y mark: X → Y is derivable from set of
dependencies of F

Adatbázisrendszerek és alkalmazásaik >> Funkcionális függések


Mark
We may leave set marker brackets and element of set
separator commas when attributes marked by single capital
letters on giving functional dependencies
For example: AB → C instead of {A,B} → {C} or
ABC → DE instead of {A,B,C} → {D,E}

Adatbázisrendszerek és alkalmazásaik >> Funkcionális függések


Mark
When X and Y mark set of attributes, on two side of
functional dependencies may use simplification for mark
the union of these attributes.
For example: XY → Z instead of X ∪ Y → Z.

Adatbázisrendszerek és alkalmazásaik >> Funkcionális függések

You might also like