Functional Dependency in DBMS
Last Updated :
01 Jul, 2025
Functional dependency in DBMS is an important concept that describes the relationship between attributes (columns) in a table. It shows that the value of one attribute determines the other. In this article, we will learn about functional dependencies and their types. Functional dependencies help maintain the quality of data in the database.
Suppose we have a student table with attributes: Stu_Id, Stu_Name, Stu_Age. Here Stu_Id attribute uniquely identifies the Stu_Name attribute of student table because if we know the student id we can tell the student name associated with it. This is known as functional dependency and can be written as Stu_Id→Stu_Name or in words we can say Stu_Name is functionally dependent on Stu_Id.
Formally: If column A of a table uniquely identifies the column B of same table then it can represented as A->B (Attribute B is functionally dependent on attribute A). Example:
Functional DependencyHow to represent functional dependency in DBMS?
- Functional dependency is expressed in the form of equations. For example, if we have an employee record with fields "EmployeeID", "FirstName" and "LastName" we can specify the function as follows:
EmployeeID -> FirstName, LastName
- To represent functional dependency in DBMS has two main features: left (LHS) and right (RHS) of the arrow (->).
- For example, if we have a table with attributes "X", "Y" and "Z" and the attribute "X" can determine the value of the attributes "Y" and "Z".
X -> Y, Z
- This symbol indicates that the value in property "X" determines the values ​​in property "Y" and "Z". So if you know the value of "X", you can also determine the value of "Y" and "Z".
Types of Functional Dependency in DBMS
The following are some important types of FDs in DBMS:
Trivial Functional Dependency
The dependency of an attribute on a set of attributes is known as trivial functional dependency if the set of attributes includes that attribute.
Non-trivial Functional Dependency
If a functional dependency X→Y holds true where Y is not a subset of X then this dependency is called non trivial Functional dependency.
Multivalued Dependency
A multivalued dependency happens when there are at least three attributes (let us say X, Y and Z), and for a value of X there is a well defined set of values of Y and a well defined set of values of Z. However, the set of values of Y is independent of set Z and vice versa.
Semi Non Trivial Functional Dependencies
X -> Y is called semi non-trivial when X intersect Y is not NULL.
Transitive Functional Dependency
Transitive functional dependency in DBMS is the relationship between attributes (columns) of a database table. This occurs when the price of one property determines the price of another property through an intermediate (third) factor.
Please refer types of functional dependencies for more details.
Armstrong’s Axioms in Functional Dependency
Reflexivity: If A is a set of attributes and B is a part of A, then the function A -> B is valid.
Augmentation: If the A -> B dependency is valid, adding multiple elements to either side of the dependency will not affect the dependency.
Transitivity: If the functions X → Y and Y → Z are both valid, then X → Z is also valid according to the transitivity rule.
Read more about Armstrong’s Axioms in Functional Dependency in DBMS.
Benefits of Functional Dependency in DBMS
Functional dependency in a database management system offers several advantages for businesses and organizations:
- Prevents Duplicate Data:
Functional dependency helps avoid storing the same data repeatedly in the database, reducing redundancy and saving storage space.
- Improves Data Quality and Accuracy:
By organizing data efficiently and minimizing duplication, functional dependency ensures the data is reliable, consistent, and of high quality.
- Reduces Errors:
Keeping data organized and concise lowers the chances of errors in records or datasets, making it easier to manage and update information.
- Saves Time and Costs:
Properly organized data allows for quicker and easier access, improving productivity and reducing the time and cost of managing information.
- Defines Rules and Behaviors:
Functional dependency allows setting rules and constraints that control how data is stored, accessed, and maintained, ensuring better data management.
- Helps Identify Poor Database Design:
It highlights issues like scattered or missing data across tables, helping identify and fix design flaws to maintain consistency and integrity.
Conclusion
Functional dependencies define how things are related to each other. It helps maintain the quality of the information in the database. It is represented by an arrow. Analyzing these relationships can simplify data creation, reduce complexity, and improve query performance. These are the building blocks for managing processes and reliable databases that are important for modern data management and data access.
Similar Reads
Fully Functional Dependency in DBMS In the case of database management systems (DBMS), knowledge of dependencies is vital for the base built on this and it is a must for the development of the database that is most useful and practical. Special interdependency, which is expressed in the schema of the database, is based on the rule of
4 min read
What is Functional Dependency in DBMS? Functional dependency in DBMS is an important concept that describes the relationship between attributes (columns) in a table. It shows that the value of one attribute determines the other. In this article, we will learn about functional dependencies and their types. Functional dependencies help mai
5 min read
Types of Functional dependencies in DBMS In relational database management, functional dependency is a concept that specifies the relationship between two sets of attributes where one attribute determines the value of another attribute. It is denoted as X â Y, where the attribute set on the left side of the arrow, X is called Determinant,
6 min read
Canonical Cover of Functional Dependencies in DBMS Managing a large set of functional dependencies can result in unnecessary computational overhead. This is where the canonical cover becomes useful. The canonical cover of a set of functional dependencies F is a simplified version of F that retains the same closure as the original set, ensuring no re
7 min read
Finding Additional functional dependencies in a relation A functional dependency is simply a constraint between two sets of attributes from the database. A functional dependency is used in normalization. A functional dependency is denoted by an arrow → .The functional dependency of A on B is represented by A → B. Functional Dependency plays a
4 min read
Partial, Full, and Transitive Dependencies Functional Dependency is a key feature of a Database management System. Functional Dependency is used to maintain the relationship between various attributes in a given database. What is Functional Dependency?Functional dependency states the relationship between two sets of attributes where a value
6 min read