Вы находитесь на странице: 1из 15

FUNCTIONAL

AFFILIATE
MARKETING
DEPENDENCY
SUBMITTED TO :- SUBMITTEDBY:-
SUBMITTED BY:-
SUBMITTED TO :-
MRS. PARAMJEET KULJEETKAUR
KULJEET KAUR
MR. PUNEET KUMAR
KAUR 3878
5004
CONTENT
About Functional Dependency
Dependency Diagram
Types of Functional Dependency
Properties of Functional
Dependency
FUNCTIONAL DEPENDENCY
The functional dependency is a
relationship that exists
between two attributes.
It typically exists between the primary key
and non
key attribute with in a table
X Y
In this we can say that Y is a functionally
example
Std.Rollno Std.name
518 Simran
522 Simran

In this example Std.rollno Std.name


Dependency Diagram
Roll_No Name

Mobile_No Class
Types of
Functional dependency
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.
like: A->A & B->B
Valid cases are used
Reflexivity is used
example
Std.Roll_n Std.name Std.Roll_n Std.name
o o
518 Simran 518 Simran
522 Kiran 518 Simran

In this example Std.roll_no , Std.name Std.roll_no


and we can say that Std.roll_no Std.roll_no &
Std.name Std.name
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
Std.Roll_no Std.name STD.PHONE_N
O
518 Simran 9874260083
522 Kiran 6423376901

In this example Std.roll_no Std.name (Std.name is not a subset of Std.roll_no)


Std.roll_no Std.phone_no (Std.phone_no is not a subset of Std.roll_no)
multivalued Dependency :-
Multivalued dependency occurs when there are more than
one independent multivalued attributes in a table.
example
Book Author Author_age
Game of George R. R.
66
Thrones Martin
Harry Potter J. K. Rowling 49
Dying of the George R. R.
66
Light Martin

{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.
transitive Dependency :-
A functional dependency is said to be transitive if it is
indirectly
formed by two functional dependencies.

For e.g.
X -> Z is a transitive dependency if the following three
functional
dependencies hold true:

X->Y
Y does not ->X
Y->Z
example
bike_model manuf_year color
M1001 2007 Black
M1001 2007 Red
M2012 2008 Black
M2012 2008 Red
M2222 2009 Black

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

Вам также может понравиться