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
Superkey
(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!
==Example== {| class="wikitable" |+ English Monarchs |- ! Monarch Name ! Monarch Number ! Royal House |- | Edward | II | Plantagenet |- | Edward | III | Plantagenet |- | Richard | III | Plantagenet |- | Henry | IV | Lancaster |} First, list out all the sets of attributes: :β’ {} :β’ {Monarch Name} :β’ {Monarch Number} :β’ {Royal House} :β’ {Monarch Name, Monarch Number} :β’ {Monarch Name, Royal House} :β’ {Monarch Number, Royal House} :β’ {Monarch Name, Monarch Number, Royal House} Second, eliminate all the sets which do not meet superkey's requirement. For example, {Monarch Name, Royal House} cannot be a superkey because for the same attribute values (Edward, Plantagenet), there are two distinct tuples: * (Edward, '''II''', Plantagenet) * (Edward, '''III''', Plantagenet) Finally, after elimination, the remaining sets of attributes are the only possible superkeys in this example: * {Monarch Name, Monarch Number} β this is also the [[candidate key]] * {Monarch Name, Monarch Number, Royal House} β this is also the trivial superkey. In reality, superkeys cannot be determined simply by examining one set of tuples in a relation. A superkey defines a [[functional dependency]] constraint of a relation schema which must hold for all possible instance relations of that relation schema.
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)