I am just learning about designing relational databases. I am on Functional Dependency. I understand some of it but when i come to certain scenarios i am lost. Can anyone explain it in layman terms or suggest a good site / tutorial / book.
Cheers!
Given a relation R (in a relational database), attribute Y of R is functionally dependent on attribute X of R and X of R functionally determines Y of R (in symbols R.X -> R.Y) if and only if each X in R has associated with it precisely one Y in R (at any one time).
In otherwords, an attribute of your dependency is considered functionally dependent iff there is another attribute in that relation which determines that value of Y... X must be associated to one and only one Y.
Ok, so lemme try layman's terms...
If you say everyone with an apartment number must live in an apartment, everyone without an apartment number lives in a house.
the Relation is something like, Does this person live in an apartment.
Our individual's relation is APT
If APT(X) == NULL THEN Y is HOUSE
If APT(X) == NUMERIC THEN Y is Apartment
Hope that made some sense, I haven't even thought of functional dependencies formally in about a year and half.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.