3,975 views
5 votes
5 votes

consider the following relational schema R(ABCDE) .The number of  super keys in relation R if every two attributes of relation R is candidate keys are ___________

1 Answer

4 votes
4 votes
Here in question it is given that combination of every two attributes is candidate key.So different combination of 2 attribute possible is $\binom{5}{2}$ i.e 10(AB,AC,AD,AE,BC,BD,BE,CD,CE,DE).

 Total subset of {A,B,C,D,E} is 2^5-1(for phi)=31.

All the subset will definitely be super key accept those with single element i.e {A},{B},{C},{D},{E}.

Now the remaining subset will be of length 2 or 3 or 4 and they will definitely contain the combination of two attribute or more than it .

For eg:-{A,B},{B,C}.............{A,B,C},{B,C,D}....... and so on .......

So the only 5 possible singleton subset are not super key .All other are super key .

31-5=26.

Related questions

2 votes
2 votes
1 answer
1
1 votes
1 votes
3 answers
2
stblue asked Sep 1, 2017
458 views
Primary key is subset or proper subset of superkey ?
0 votes
0 votes
1 answer
3
slowpoke asked May 4, 2017
429 views
Find the Odd one Out: Candidate KeySuper KeyPrimary KeyAlternate Key
0 votes
0 votes
0 answers
4
srestha asked Sep 16, 2017
504 views
How one to many relation refers a foreign key?