566 views
0 votes
0 votes
Lets say their is R(A,B,C)   and FD :   A⟶B, AB⟶C and A is key. Is it in 3NF? Explain

2 Answers

Best answer
1 votes
1 votes

For a relation to be in 3NF ,  we must have X-->Y , so either X should be a key or Y should be a prime attribute , Now with the given FD , u can re-write them as A-->B and A-->C as (A)+=(ABC) , so you can remove B from the functional dependency AB-->C , so that it becomes A-->C , therefore now you are left with A-->BC only and since A is a key so clearly the FD is in 3NF .

Point : whenever You have PQ-->R and (P)+=(PQR) , then remove Q from the FD ,since P alone can determine R so Q is redundant here , so your FD reduces to P-->R 

 

selected by
1 votes
1 votes

3NF defination->

for every non -trivial FD x->y either->1.  X is a key  

                                                        2. Y is a prime attribute

so here R(A,B,C) :A->B and AB->c.. A is a key (given) ..for AB->finding closure ->AB+=ABC ..it contains all the attributes so it is also a key. both FD satify 1st condition so this is in 3NF

Related questions

0 votes
0 votes
1 answer
1
vivek1211 asked Mar 12, 2023
668 views
given an instance of relation R(ABC). find all non-trivial FDsare AB->C, AC->B, BC→ A true ??
6 votes
6 votes
5 answers
3
2 votes
2 votes
0 answers
4