Functional Dependency in DBMS (original) (raw)

Last Updated : 24 Apr, 2026

A functional dependency occurs when the value of one attribute (or a set of attributes) uniquely determines the value of another attribute. This relationship is denoted as:

**X → Y

Here, **X is the determinant, and **Y is the dependent attribute. This means that for each unique value of X, there is precisely one corresponding value of Y.

Consider a table named Students with the following attributes:

StudentID StudentName StudentAge
101 Rahul 23
102 Ankit 22
103 Aditya 22
104 Sahil 24
105 Ankit 23

The above table has the following functional dependencies

StudentID -> StudentName
StudentID -> StudentAge

Note that the functional dependencies StudentName -> StudentAge or StudentAge -> StudentName Do not hold.

determinant

How to represent functional dependency in DBMS

EmployeeID -> FirstName, LastName

X -> Y, Z

**Benefits of Functional Dependency in DBMS

The concept of normalization is based on functional dependencies. Using functional dependencies, we break a table in multiple tables that helps us in preventing duplicate data and hence Improves Data Quality, less errors and better database design.