edited by
1,889 views
2 votes
2 votes
Consider the following relations R1 and R2 given below

R1(ABCD) And functional dependency are {AB→C  ,C→A ,AC→D} and

R2(ABCD) functional dependency are {AB→C ,BC→D}.

(a)Both R1 and R2 in 3NF

(b)R1 is not in 2NF and R2 in 2NF

(c)R1 in 2NF and R2 in 3NF

(d)None of the above
edited by

2 Answers

Best answer
5 votes
5 votes

R1 : AB+ = {ABCD}  --------  CK   ,     BC IS CK

       AC+={ACD} ------------ NOT CK

FOR 2NF X->Y either subset of X is not  CK or Y is prime attribute

AB→C  ,C→A ,AC→D

 since AB is CK not subset of CK  ,C,AC is not subset of CK but C+={ACD} 

here C can alone derive A which implies AC->D as PD

so R1 is not 2NF 

FOR 3NF X->Y  either X is superkey or Y is prime attribute

 BUT AC->D here AC is not superkey and D is not prime attribute

Therefore R1 is not 3NF

R2: AB+ ={ABCD}  ------- CK

      BC+={BCD}  ---------- NOT CK

AB->C ,BC->D here AB is CK  A+={A},B+={B} AB+={ABCD} ,BC is not CK B+={B} ,C+={C},BC+={BCD} 

No PD's in R2

Therefore R2 is in 2NF

BC->D here BC is not superkey and D is not prime attribute

R2 is not 3NF

So R1 is not 2NF ,R2  is 2NF 

Therefore Option B 

Let me know if anything wrong

selected by

Related questions

0 votes
0 votes
2 answers
1
0 votes
0 votes
0 answers
3
Na462 asked Oct 21, 2018
1,029 views
1 votes
1 votes
2 answers
4
srestha asked Oct 2, 2018
1,032 views
Here directly dependency not given. Which normal form it doesnot hold , how to eliminate it? I got here 1:m, or 1:1 dependency. Is it any value to ans this question?