answersLogoWhite

0


Best Answer

4. Functional dependency

In relational database theory, a functional dependency is a constraint between two sets of attributes in a relation from a database.

Given a relation R, a set of attributes X in R is said to functionally determine another set of attributes Y, also in R, (written XY) if, and only if, each X value is associated with precisely one Y value; R is then said to satisfy the functional dependency XY. Equivalently, the projection is a function, i.e. Y is a function of X.[1][2] In simple words, if the values for the X attributes are known (say they are x), then the values for the Y attributes corresponding to x can be determined by looking them up in any tuple of Rcontaining x. Customarily X is called the determinant set and Y the dependent set. A functional dependency FD: XY is called trivial if Y is a subset of X.

The determination of functional dependencies is an important part of designing databases in the relational model, and in database normalization and denormalization. A simple application of functional dependencies is Heath's theorem; it says that a relation R over an attribute set U and satisfying a functional dependency XY can be safely split in two relations having the lossless-join decomposition property, namely into where Z = UXY are the rest of the attributes. (Unions of attribute sets are customarily denoted by mere juxtapositions in database theory.) An important notion in this context is a candidate key, defined as a minimal set of attributes that functionally determine all of the attributes in a relation. The functional dependencies, along with the attribute domains, are selected so as to generate constraints that would exclude as much data inappropriate to the user domain from the system as possible.

A notion of logical implication is defined for functional dependencies in the following way: a set of functional dependencies logically implies another set of dependencies , if any relation R satisfying all dependencies from also satisfies all dependencies from ; this is usually written . The notion of logical implication for functional dependencies admits a sound and complete finite axiomatization, known as Armstrong's axioms.

Properties and axiomatization of functional dependencies

Given that X, Y, and Z are sets of attributes in a relation R, one can derive several properties of functional dependencies. Among the most important are the following, usually called Armstrong's axioms:[3]

  • Reflexivity: If Y is a subset of X, then XY
  • Augmentation: If XY, then XZYZ
  • Transitivity: If XY and YZ, then XZ

"Reflexivity" can be weakened to just , i.e. it is an actual axiom, where the other two are proper inference rules, more precisely giving rise to the following rules of syntactic consequence:[4]

.

These three rules are a sound and complete axiomatization of functional dependencies. This axiomatization is sometimes described as finite because the number of inference rules is finite,[5] with the caveat that the axiom and rules of inference are all schemata, meaning that the X, Y and Z range over all ground terms (attribute sets).[4]

From these rules, we can derive these secondary rules:[3]

  • Union: If XY and XZ, then XYZ
  • Decomposition: If XYZ, then XY and XZ
  • Pseudotransitivity: If XY and WYZ, then WXZ

The union and decomposition rules can be combined in a logical equivalence stating that XYZ, holds iff XY and XZ. This is sometimes called the splitting/combining rule.[6]

Another rule that is sometimes handy is:[7]

  • Composition: If XY and ZW, then XZYW

Equivalent sets of functional dependencies are called covers of each other. Every set of functional dependencies has a canonical cover.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Axioms for functional dependencies and inclusion dependencies?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Algebra

What are the kinds of axioms?

An Axiom is a mathematical statement that is assumed to be true. There are five basic axioms of algebra. The axioms are the reflexive axiom, symmetric axiom, transitive axiom, additive axiom and multiplicative axiom.


What is multivalued dependency?

Multivalued dependencies are also referred to as tuple generating dependencies. After the Boyce -Codd normal form the results may be devoid of any functional dependencies but it may encounter multivalued dependencies as the multivalued dependencies also cause redundancy of data. For eg: If there are 3 attributes involved in a relation,A,B, and C.. Then for every value of A we will have respective values for B and C.. But it is a necessary in the 4th normal form that both B and C values are independent of each other. This is represented by .,, A->>B A->>C.. MVD or Multivalued Dependency is a dependency where one attribute value is potentially a "multivalued fact" about another and the attributes must be independent of each other.


What are the types of axioms?

There are two types of mathematical axioms: logical and non-logical. Logical axioms are the "self-evident," unprovable, mathematical statements which are held to be universally true across all disciplines of math. The axiomatic system known as ZFC has great examples of logical axioms. I added a related link about ZFC if you'd like to learn more. Non-logical axioms, on the other hand, are the axioms that are specific to a particular branch of mathematics, like arithmetic, propositional calculus, and group theory. I added links to those as well.


When is a table in 2NF?

A table is in 2NF when it is in 1NF and it includes no partial dependencies. However a table in 2NF may still have transitive dependencies, i.e., dependencies based on attributes that are not part of the primary key.


What are axioms?

axioms are statements which cannot be proved.but these statements are accepted universally.we know that any line can be drawn joining any two points.this does not have a proof

Related questions