Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

non trivial functional dependency in DBMS

pls help me to find out non trivial functional dependency in a following table?

A.            B.              C
1             1               1
1             1               0
2             3               2
2             3               2

and also explain the basic concept behind it. thank you,,

like image 710
vashu Avatar asked Apr 10 '14 15:04

vashu


People also ask

What is trivial and non trivial functional dependency in DBMS?

Trivial Functional Dependency Trivial − If a functional dependency (FD) X → Y holds, where Y is a subset of X, then it is called a trivial FD. Trivial FDs always hold. Non-trivial − If an FD X → Y holds, where Y is not a subset of X, then it is called a non-trivial FD.

Which of the following is completely non trivial dependency?

Completely non-trivial: If an FD X → Y holds where x intersect Y = Φ, is said to be completely non-trivial FD. Being Y not subset of X and X intersect Y = Φ.

What are trivial functional dependencies?

Trivial Functional dependency: The Trivial dependency is a set of attributes which are called a trivial if the set of attributes are included in that attribute. So, X -> Y is a trivial functional dependency if Y is a subset of X.

What is a non trivial MVD?

An mvd that is not also an fd. By definition, every fd is an mvd. However, not all mvds are fds. Mvds in which a column is associated with more than one value of two columns, is a nontrivial mvd.


2 Answers

A functional dependency answers the question, "Given one value for X, do I find one and only one value for Y?" Both X and Y are sets; each one represents one or more attributes.

So we can ask ourselves, "Given one value for 'A', do I find one and only one value for 'B'?" And the answer is "Yes". (Assuming the sample data is representative.) That leads to the nontrivial functional dependency A->B.

And we continue with the question, "Given one value for 'A', do I find one and only one value for 'C'?" And the answer is "No". Given 1 for 'A', we find two different values for 'C': 1 and 0. No functional dependency there.

Repeat for every possible combination of attributes.

like image 86
Mike Sherrill 'Cat Recall' Avatar answered Sep 20 '22 00:09

Mike Sherrill 'Cat Recall'


Trivial: If an FD X → Y holds where Y subset of X, then it is called a trivial FD. Trivial FDs are always hold.

Non-trivial: If an FD X → Y holds where Y is not subset of X, then it is called non-trivial FD.

Completely non-trivial: If an FD X → Y holds where x intersect Y = Φ, is said to be completely non-trivial FD.

For example:

X = { b, c } and Y = { b, a }. If X → Y, then the FD is non-trivial but not completely non-trivial.

like image 40
user4280884 Avatar answered Sep 21 '22 00:09

user4280884