


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Paper: E401 (INTRODUCTION TO DATABASE MANAGEMENT SYSTEM) Topics: Functional dependency, Types of functional dependency
A functional dependency (FD) is a relationship between two attributes, typically between the primary key and other non-key attributes within a table. A functional dependency denoted by
X ๏ Y , is an association between two sets of attribute X and Y. Here, X is called the determinant , and Y is called the dependent.
For example, SIN โโโ-> Name, Address, Birthdate
Here, SIN determines Name, Address and Birthdate.So, SIN is the determinant and Name, Address and Birthdate are the dependents.
Rules of Functional Dependencies
Dependency Diagram
A dependency diagram, shown in the following figure illustrates the various dependencies that might exist in a non-normalized table. A non-normalized table is one that has data redundancy in it.
In this dependency diagram, the primary key is { PROJ_NUM,EMP_NUM}
Full functional dependency:
{ PROJ_NUM,EMP_NUM} ๏ HOURS
Partial functional dependency:
PROJ_NUM ๏ PROJ_NAME EMP_NUM ๏ EMP_NAME EMP_NUM ๏ JOB_CLASS EMP_NUM ๏ CHG_HOUR
Transitive dependency:
EMP_NUM ๏ JOB_CLASS (comes from EMP_NUM ๏ JOB_CLASS and JOB_CLASS ๏ CHG_HOUR)
Types of functional dependency
The following are types functional dependency in DBMS:
Full functional Dependency
A functional dependency X๏ Y is said to be a full functional dependency, if removal of any attribute A from X, the dependency does not hold any more. i.e. Y is fully functional dependent on X, if it is Functionally Dependent on X and not on any of the proper subset of X. For example,
{Emp_num,Proj_num} ๏ Hour
Is a full functional dependency. Here, Hour is the working time by an employee in a project.
Example: Consider the following table
Car_model Manufr_year Color
H001 2017 Metallic
H001 2017 Green
H005 2018 Metallic
H005 2018 Blue
H010 2015 Metallic
H033 2012 Gray
The functional dependencies
car_model - > manufr_year
car_model-> colour
are multivalued dependency since manufr_year and color both are multivalued attribute