in Databases
441 views
0 votes
0 votes
prime attribute appears in some candidate key???pls explain how??
in Databases
by
441 views

2 Answers

4 votes
4 votes
R(ABCDE)

AB-> CD

C->B

D->E

 

candidate key  are AB and AC.

then A, B, C are prime attribute.. here B come in one candidate key not in both But also a prime attribute.

SO any attribute which are in any candidate key are prime attribute.

3 Comments

Is prime attribute appears in all ck???
0
0

no prime attribute is one who apear in any candidate key.. see above i explain it.. B is appear only in one candidate key.. 

Is prime attribute appears in all ck

but according to this statemnt only A and C are prime attribute but B is not.

1
1
ok got it
0
0
1 vote
1 vote
It is other way around. Whichever attribute that appears in some candidate key is called a prime attribute.
by