edited by
9,151 views
5 votes
5 votes

If every non-key attribute functionally dependent on the primary key, then the relation will be in

  1. First normal form
  2. Second normal form
  3. Third normal form
  4. Fourth Normal form
edited by

12 Answers

0 votes
0 votes

Answer - C Third Normal Form.

Why it is not in 2NF:

Let's take simple example:

R: {X→Y,  Y→Z,  X→Z}

In above relation,  in FD Y→Z, Z is clearly Non key attribute and It is NOT dependent on Primary key Because Primary key is X.

Y→Z is not valid functional dependency for the given statement "If every non-key attribute functionally dependent on the primary key". 

We can't take wrong example and prove our answer. 

 3NF Wikipedia definition : "no non-prime attribute depends on other non-prime attributes. All the non-prime attributes must depend only on the candidate keys."  This definition is same as "If every non-key attribute (All the non prime attributes) functionally dependent on the primary key(candidate keys)"

Non prime attribute and Non key attributes are same : http://www.exploredatabase.com/2017/07/define-non-prime-attribute-non-key-attribute-in-dbms.html

 

edited by
0 votes
0 votes

Since every non key is dependent on primary key, there is no partial dependency. Therefore definitely  in 2NF.

Since one of the prime attribute may be dependent on a key, this might not be in 3NF.

Therefore 2NF

Answer:

Related questions

6 votes
6 votes
5 answers
1
Satbir asked Jan 13, 2020
2,975 views
If $x+2y=30$, then $\left(\dfrac{2y}{5}+\dfrac{x}{3} \right) + \left (\dfrac{x}{5}+\dfrac{2y}{3} \right)$ will be equal to$8$$16$$18$$20$
3 votes
3 votes
4 answers
2
Satbir asked Jan 13, 2020
8,952 views
A given grammar is called ambiguous iftwo or more productions have the same non-terminal on the left hand sidea derivation tree has more than one associated sentencethere...
3 votes
3 votes
3 answers
3
Satbir asked Jan 13, 2020
2,188 views
Which of the following is true?Every subset of a regular set is regularEvery finite subset of non-regular set is regularThe union of two non regular set is not regularInf...
2 votes
2 votes
4 answers
4
Satbir asked Jan 13, 2020
2,737 views
Context free languages are closed underunion, intersectionunion, kleene closureintersection, complementcomplement, kleene closure