Functional dependency Guide, Meaning , Facts, Information and Description
A functional dependency is a constraint between two sets of attributes in a relation from a database.An attribute or set of attributes X is said to functionally determine another attribute Y (written ) if and only if each X value is associated with at most one Y value. Customarily we call X determinant set and Y a dependent set.
So if we are given the value of X we can determine the value of Y.
- (Note: the "function" being discussed in "functional dependency" is the function of identification.)
The determination of functional dependencies is an important part of designing databases in the relational model, and in database normalization and denormalization. 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.
For example, suppose one is designing a system to track vehicles and the capacity of their engines. Each vehicle has a unique vehicle identification number (VIN). One would write:
because it would be inappropriate for a vehicle's engine to have more than one capacity. However,
This functional dependency may suggest that the attribute EngineCapacity be placed in a relation with candidate key VIN. However, that may not always be appropriate. For example, if that functional dependency occurs as a result of the transitive functional dependencies
