Partial, Full, and Transitive Dependencies (original) (raw)

Last Updated : 22 Sep, 2025

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 of a set of attributes is dependent on the other set of attributes.

It is a relationship that typically exists between two attributes such that with the help of one attribute we can get the values of another attribute. The attribute that is used for finding the values of other attributes is called the primary key attribute.

Why is Functional Dependency Used?

Example

We have a table with student details such as roll number, name, and city.

roll_no name city
1 Yash Delhi
2 Kartik Mumbai
3 Aditya Delhi
4 Kartik Pune

Types of Dependencies

Partial Dependency

Example

Let's take an example, we have a table where we have columns of student roll number, subject ID, sub name, and marks obtained.

Table

roll_no sub_id sub_name sub_mark
1 121 Science 80
1 131 Math 65
2 131 Math 95
2 141 English 75

Full Dependency

Example

Let's take an example, we have a table where we have columns of student roll number, subject ID, and marks obtained.

Table

roll_no sub_id marks
1 121 80
1 131 65
2 131 95
2 141 75

**Transitive Dependency

Example

Let's take an example, we have a table where we have columns of student roll number, name, city where student live, and zip-code of city .

Table

roll_no name city zip-code
1 abc pune 411044
2 jkl mumbai 400001
3 uvw pune 411044
4 xyz delhi 110001