Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Functional dependency
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Closure == === Closure of functional dependency === The closure of a set of values is the set of attributes that can be determined using its functional dependencies for a given relationship. One uses [[Armstrong's axioms]] to provide a proof - i.e. reflexivity, augmentation, transitivity. Given <math>R</math> and <math>F</math> a set of FDs that holds in <math>R</math>: The closure of <math>F</math> in <math>R</math> (denoted <math>F</math><sup>+</sup>) is the set of all FDs that are logically implied by <math>F</math>.<ref>{{Cite journal|last=Saiedian|first=H.|date=1996-02-01|title=An Efficient Algorithm to Compute the Candidate Keys of a Relational Database Schema|url=https://academic.oup.com/comjnl/article-lookup/doi/10.1093/comjnl/39.2.124|journal=The Computer Journal|language=en|volume=39|issue=2|pages=124β132|doi=10.1093/comjnl/39.2.124|issn=0010-4620}}</ref> === Closure of a set of attributes === Closure of a set of attributes X with respect to <math>F</math> is the set X<sup>+</sup> of all attributes that are functionally determined by X using <math>F</math><sup>+</sup>. ==== Example ==== Imagine the following list of FDs. We are going to calculate a closure for A (written as A<sup>+</sup>) from this relationship. # ''A'' β ''B'' # ''B'' β ''C'' # ''AB'' β ''D'' The closure would be as follows: {{ordered list | list-style-type = lower-alpha | A β A (by Armstrong's reflexivity) | A β AB (by 1. and (a)) | A β ABD (by (b), 3, and Armstrong's transitivity) | A β ABCD (by (c), and 2) }} Therefore, A<sup>+</sup>= ABCD. Because A<sup>+</sup> includes every attribute in the relationship, it is a [[superkey]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)