edited by
1,922 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

850
views
2 answers
0 votes
Souvik33 asked Dec 17, 2022
850 views
MSQ A relation R(A,B,C,D) has only trivial functional dependencies of the form ( A→A, AB→AB,ABC→A, etc)Then consider the following options:The relation is surely in...
1.0k
views
0 answers
0 votes
Harsh Kumar asked Nov 19, 2018
1,020 views
I've some elementary doubts regarding Foreign keys (referential integrity) :Can a foreign key consist of a collection of attributes - ie. can two or more columns collecti...
1.1k
views
0 answers
0 votes
Na462 asked Oct 21, 2018
1,081 views
1.1k
views
2 answers
1 votes
srestha asked Oct 2, 2018
1,059 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?