SlideShare a Scribd company logo
2
Most read
3
Most read
11
Most read
FUNCTION DEPENDENCY
AND
TYPES & EXAMPLE
NAME-VRAJ PATEL
BATCH-A
ENROLL NO : 150410107082
DEFINATION
• Functional dependency is a relationship that exists when one attribute
uniquely determines another attribute. If R is a relation with
attributes X and Y, a functional dependency between the attributes is
represented as X->Y, which specifies Y is functionally dependent on X.
• The attributes of a table is said to be dependent on each other when
an attribute of a table uniquely identifies another attribute of the same
table.
• For example:
• 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.
Functional dependency and can be written as :
Stu_Id->Stu_Name .
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)
Types of Functional Dependencies
• Trivial functional dependency
• Non-trivial functional dependency
• Multivalued dependency
• Transitive dependency
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.
Symbolically:
• A ->B is trivial functional dependency if B is a subset of A.
• The following dependencies are also trivial: A->A & B->B
• For example:
Consider a table with two columns Student_id and Student_Name.
{Student_Id, Student_Name} -> Student_Id is a trivial functional
dependency as Student_Id is a subset of {Student_Id,
Student_Name}.
• Also, Student_Id -> Student_Id & Student_Name -> Student_Name
are trivial dependencies too.
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.
Example :
An employee table with three attributes: emp_id, emp_name,
emp_address.
The following functional dependencies are non-trivial:
emp_id -> emp_name (emp_name is not a subset of emp_id)
emp_id -> emp_address (emp_address is not a subset of emp_id)
• On the other hand, the following dependencies are trivial:
{emp_id, emp_name} -> emp_name [emp_name is a subset of {emp_id, emp_name}]
Completely non trivial FD:
If a Functional dependency X->Y holds true where X intersection Y is Null then this
dependency is said to be completely non trivial function dependency.
Multivalued dependency
• Multivalued dependency occurs when there are more than one
independent multivalued attributes in a table.
• a multivalued dependency is a full constraint between two sets of
attributes in a relation. In contrast to the functional dependency,
the multivalued dependency requires that certain tuples be
present in a relation.
• Consider a bike manufacture company, which produces two colors (Black and white) in each
model every year.
• Here columns manuf_year and color are independent of each other
and dependent on bike_model. In this case these two columns are
said to be multivalued dependent on bike_model.
These dependencies can be represented like this:
• bike_model ->> manuf_year
• bike_model ->> color
Transitive dependency
A functional dependency is said to be transitive if it is indirectly
formed by two functional dependencies.
X -> Z is a transitive dependency if the following three functional
dependencies hold true:
X->Y
Y does not ->X
Y->Z
A transitive dependency can only occur in a relation of three of
more attributes. This dependency helps us normalizing the
database in 3NF (3rd Normal Form).
• Example :-
• {Book} ->{Author} (if we know the book, we knows the author
name)
• {Author} does not ->{Book}
• {Author} -> {Author_age}
• Therefore as per the rule of transitive dependency:
• {Book} -> {Author_age} should hold, that makes sense because if
we know the book name we can know the author’s age.
THANK YOU

More Related Content

PPTX
Functional dependencies and normalization
daxesh chauhan
 
PPSX
Functional dependency
Dashani Rajapaksha
 
PPTX
Functional dependencies in Database Management System
Kevin Jadiya
 
PPTX
Normal forms
Samuel Igbanogu
 
PDF
Functional Dependency
Alaanoor94
 
PPTX
Integrity Constraints
Megha yadav
 
PPTX
Integrity Constraints
madhav bansal
 
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Functional dependencies and normalization
daxesh chauhan
 
Functional dependency
Dashani Rajapaksha
 
Functional dependencies in Database Management System
Kevin Jadiya
 
Normal forms
Samuel Igbanogu
 
Functional Dependency
Alaanoor94
 
Integrity Constraints
Megha yadav
 
Integrity Constraints
madhav bansal
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 

What's hot (20)

PPTX
SQL - Structured query language introduction
Smriti Jain
 
PPTX
joins in database
Sultan Arshad
 
PDF
Relational algebra in dbms
Vignesh Saravanan
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPTX
Relational Data Model Introduction
Nishant Munjal
 
PDF
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
PDF
Nested Queries Lecture
Felipe Costa
 
PPTX
Relational algebra ppt
GirdharRatne
 
PPT
Databases: Normalisation
Damian T. Gordon
 
PPTX
trigger dbms
kuldeep100
 
PPTX
Concurrency Control in Database Management System
Janki Shah
 
PPTX
Normalization in DBMS
Prateek Parimal
 
PDF
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
PPTX
Degree of relationship set
Megha Sharma
 
PDF
Dbms 3: 3 Schema Architecture
Amiya9439793168
 
PPT
12. Indexing and Hashing in DBMS
koolkampus
 
PPTX
Concurrency control
Subhasish Pati
 
PPTX
The Relational Database Model
Shishir Aryal
 
PDF
Normalization in DBMS
Hitesh Mohapatra
 
SQL - Structured query language introduction
Smriti Jain
 
joins in database
Sultan Arshad
 
Relational algebra in dbms
Vignesh Saravanan
 
Relational model
Dabbal Singh Mahara
 
Relational Data Model Introduction
Nishant Munjal
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
BIT Durg
 
Nested Queries Lecture
Felipe Costa
 
Relational algebra ppt
GirdharRatne
 
Databases: Normalisation
Damian T. Gordon
 
trigger dbms
kuldeep100
 
Concurrency Control in Database Management System
Janki Shah
 
Normalization in DBMS
Prateek Parimal
 
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
Degree of relationship set
Megha Sharma
 
Dbms 3: 3 Schema Architecture
Amiya9439793168
 
12. Indexing and Hashing in DBMS
koolkampus
 
Concurrency control
Subhasish Pati
 
The Relational Database Model
Shishir Aryal
 
Normalization in DBMS
Hitesh Mohapatra
 
Ad

Similar to FUNCTION DEPENDENCY AND TYPES & EXAMPLE (20)

PPT
DBMS Normalization (1,2,3,BCNF Normal Form,
janardhan reddy Ummadi.Janardhan
 
PDF
topic 3 dependencies Normalzation softwares-converted.pdf
tahir427002
 
PPTX
functional dependency in engineering.pptx
amanchouhan9917
 
PPTX
functional dependency in database (1).pptx
sunaina3086
 
PPTX
data dependency in relational database management
ssuserf80a8c
 
PPTX
FD first lesson66666666666666666666.pptx
sameera abu-ghalyoon
 
PPTX
module-3 Functional Dependency & Key Generation.pptx
sureshm491823
 
PDF
INTRODUCTIONV\ DBMS presentations F6.pdf
VADAPALLYPRAVEENKUMA1
 
PPTX
Data base management system (2)
MrinalDev1
 
PPTX
Functional Dependency.pptx
amritapriyadarshinis
 
PPTX
BWU_BTA_22_508_RANJAN DAS(Databse management systems).pptx
rd156480
 
PPTX
Functional Dependency in DBMS Enggg.pptx
AyaanAliKhan4
 
PPTX
Functional dependancy
Visakh V
 
PPT
Database normalization
VARSHAKUMARI49
 
PPTX
Introduction to database management system
backiyalakshmi14
 
PPTX
DBMS-Functional dependency and anomalies
DrSusheelaHooda
 
PPTX
21CSC205P DBMS UNIT IV.pptx21CSC205P DBMS UNIT IV.pptx
fellowvapour
 
PPTX
Normalization
Dabbal Singh Mahara
 
PPTX
Chapter-8 Relational Database Design
Kunal Anand
 
PPTX
Chapter 4.pptxdatabase presentation foe fund
mersimoybekele88
 
DBMS Normalization (1,2,3,BCNF Normal Form,
janardhan reddy Ummadi.Janardhan
 
topic 3 dependencies Normalzation softwares-converted.pdf
tahir427002
 
functional dependency in engineering.pptx
amanchouhan9917
 
functional dependency in database (1).pptx
sunaina3086
 
data dependency in relational database management
ssuserf80a8c
 
FD first lesson66666666666666666666.pptx
sameera abu-ghalyoon
 
module-3 Functional Dependency & Key Generation.pptx
sureshm491823
 
INTRODUCTIONV\ DBMS presentations F6.pdf
VADAPALLYPRAVEENKUMA1
 
Data base management system (2)
MrinalDev1
 
Functional Dependency.pptx
amritapriyadarshinis
 
BWU_BTA_22_508_RANJAN DAS(Databse management systems).pptx
rd156480
 
Functional Dependency in DBMS Enggg.pptx
AyaanAliKhan4
 
Functional dependancy
Visakh V
 
Database normalization
VARSHAKUMARI49
 
Introduction to database management system
backiyalakshmi14
 
DBMS-Functional dependency and anomalies
DrSusheelaHooda
 
21CSC205P DBMS UNIT IV.pptx21CSC205P DBMS UNIT IV.pptx
fellowvapour
 
Normalization
Dabbal Singh Mahara
 
Chapter-8 Relational Database Design
Kunal Anand
 
Chapter 4.pptxdatabase presentation foe fund
mersimoybekele88
 
Ad

Recently uploaded (20)

PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PPTX
Extract Transformation Load (3) (1).pptx
revathi148366
 
PPTX
Employee Salary Presentation.l based on data science collection of data
barridevakumari2004
 
PPTX
Introduction to Biostatistics Presentation.pptx
AtemJoshua
 
PPTX
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
PPTX
GR3-PPTFINAL (1).pptx 0.91 MbHIHUHUGG,HJGH
DarylArellaga1
 
PPTX
Economic Sector Performance Recovery.pptx
yulisbaso2020
 
PDF
AI Lect 2 Identifying AI systems, branches of AI, etc.pdf
mswindow00
 
PPTX
Machine Learning Solution for Power Grid Cybersecurity with GraphWavelets
Sione Palu
 
PPTX
1intro to AI.pptx AI components & composition
ssuserb993e5
 
PDF
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
PDF
Data_Cleaning_Infographic_Series_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
PDF
Linux OS guide to know, operate. Linux Filesystem, command, users and system
Kiran Maharjan
 
PDF
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
PPTX
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
PDF
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
PDF
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
PDF
1 Simple and Compound Interest_953c061c981ff8640f0b8e733b245589.pdf
JaexczJol060205
 
PDF
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
Extract Transformation Load (3) (1).pptx
revathi148366
 
Employee Salary Presentation.l based on data science collection of data
barridevakumari2004
 
Introduction to Biostatistics Presentation.pptx
AtemJoshua
 
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
GR3-PPTFINAL (1).pptx 0.91 MbHIHUHUGG,HJGH
DarylArellaga1
 
Economic Sector Performance Recovery.pptx
yulisbaso2020
 
AI Lect 2 Identifying AI systems, branches of AI, etc.pdf
mswindow00
 
Machine Learning Solution for Power Grid Cybersecurity with GraphWavelets
Sione Palu
 
1intro to AI.pptx AI components & composition
ssuserb993e5
 
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
Data_Cleaning_Infographic_Series_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
Linux OS guide to know, operate. Linux Filesystem, command, users and system
Kiran Maharjan
 
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
1 Simple and Compound Interest_953c061c981ff8640f0b8e733b245589.pdf
JaexczJol060205
 
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 

FUNCTION DEPENDENCY AND TYPES & EXAMPLE

  • 1. FUNCTION DEPENDENCY AND TYPES & EXAMPLE NAME-VRAJ PATEL BATCH-A ENROLL NO : 150410107082
  • 2. DEFINATION • Functional dependency is a relationship that exists when one attribute uniquely determines another attribute. If R is a relation with attributes X and Y, a functional dependency between the attributes is represented as X->Y, which specifies Y is functionally dependent on X. • The attributes of a table is said to be dependent on each other when an attribute of a table uniquely identifies another attribute of the same table.
  • 3. • For example: • 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.
  • 4. Functional dependency and can be written as : Stu_Id->Stu_Name . 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)
  • 5. Types of Functional Dependencies • Trivial functional dependency • Non-trivial functional dependency • Multivalued dependency • Transitive dependency
  • 6. 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. Symbolically: • A ->B is trivial functional dependency if B is a subset of A. • The following dependencies are also trivial: A->A & B->B
  • 7. • For example: Consider a table with two columns Student_id and Student_Name. {Student_Id, Student_Name} -> Student_Id is a trivial functional dependency as Student_Id is a subset of {Student_Id, Student_Name}. • Also, Student_Id -> Student_Id & Student_Name -> Student_Name are trivial dependencies too.
  • 8. 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.
  • 9. Example : An employee table with three attributes: emp_id, emp_name, emp_address. The following functional dependencies are non-trivial: emp_id -> emp_name (emp_name is not a subset of emp_id) emp_id -> emp_address (emp_address is not a subset of emp_id)
  • 10. • On the other hand, the following dependencies are trivial: {emp_id, emp_name} -> emp_name [emp_name is a subset of {emp_id, emp_name}] Completely non trivial FD: If a Functional dependency X->Y holds true where X intersection Y is Null then this dependency is said to be completely non trivial function dependency.
  • 11. Multivalued dependency • Multivalued dependency occurs when there are more than one independent multivalued attributes in a table. • a multivalued dependency is a full constraint between two sets of attributes in a relation. In contrast to the functional dependency, the multivalued dependency requires that certain tuples be present in a relation.
  • 12. • Consider a bike manufacture company, which produces two colors (Black and white) in each model every year.
  • 13. • Here columns manuf_year and color are independent of each other and dependent on bike_model. In this case these two columns are said to be multivalued dependent on bike_model. These dependencies can be represented like this: • bike_model ->> manuf_year • bike_model ->> color
  • 14. Transitive dependency A functional dependency is said to be transitive if it is indirectly formed by two functional dependencies. X -> Z is a transitive dependency if the following three functional dependencies hold true: X->Y Y does not ->X Y->Z A transitive dependency can only occur in a relation of three of more attributes. This dependency helps us normalizing the database in 3NF (3rd Normal Form).
  • 16. • {Book} ->{Author} (if we know the book, we knows the author name) • {Author} does not ->{Book} • {Author} -> {Author_age} • Therefore as per the rule of transitive dependency: • {Book} -> {Author_age} should hold, that makes sense because if we know the book name we can know the author’s age.