Types of Functional Dependencies in DBMS
Types of Functional Dependencies in DBMS
Example:
RegNo name dept_name dept_building
42 abc CO A4
43 pqr IT A3
44 xyz CO A4
45 xyz IT A3
46 mno EC B2
47 jkl ME B2
From the above table we can conclude some valid functional dependencies:
● RegNo → { name, dept_name, dept_building },→ Here, RegNo can
determine values of fields name, dept_name and dept_building, hence a valid
Functional dependency
● RegNo → dept_name , Since RegNo can determine whole set of {name,
dept_name, dept_building}, it can determine its subset dept_name also.
● dept_name → dept_building , Dept_name can identify the dept_building
accurately, since departments with different dept_name will also have a
different dept_building
● More valid functional dependencies: RegNo → name, {roll_no, name} ⇢
{dept_name, dept_building}, etc.
Here are some invalid functional dependencies:
● name → dept_name Students with the same name can have different
dept_name, hence this is not a valid functional dependency.
42 abc 17
43 pqr 18
44 xyz 18
Example:
RegNo name age
42 abc 17
43 pqr 18
44 xyz 18
42 abc 17
43 pqr 18
44 xyz 18
45 abc 19
42 abc CO 4
43 pqr EC 2
44 xyz IT 1
45 abc EC 2
Here, RegNo → dept and dept → building_no. Hence, according to the axiom
of transitivity, RegNo → building_no is a valid functional dependency. This is
an indirect functional dependency, hence called Transitive functional
dependency.
1. Data Normalization
2. Query Optimization
With the help of functional dependencies we are able to decide the connectivity
between the tables and the necessary attributes need to be projected to retrieve
the required data from the tables. This helps in query optimization and improves
performance.
3. Consistency of Data
Conclusion
Axioms
● Axiom of Reflexivity: If A is a set of attributes and B is a subset of A,
then A holds B. If B⊆A then A→B. This property is trivial property.
Secondary Rules
These rules can be derived from the above axioms.
● Union: If A→B holds and A→C holds, then A→BC holds.
If X→Y and X→Z then X→YZ.
● Pseudo Transitivity: If A→B holds and BC→D holds, then AC→D holds.
If X→Y and YZ→W then XZ→W.
Armstrong Relation
Armstrong Relation can be stated as a relation that is able to satisfy all
functional dependencies in the F+ Closure. In the given set of dependencies, the
size of the minimum Armstrong Relation is an exponential function of the
number of attributes present in the dependency under consideration.
****************************************************************