643 views

2 Answers

Best answer
3 votes
3 votes

We have CK = {A, BC, CD}

Then SK = SK(A) + SK(BC) + SK(CD) - SK(ABC) - SK(BCD) - SK(ACD) + SK(ABCD)

n = number of attributes = 5.

SK = 2n-1 + 2n-2 + 2n-2 - 2n-3 - 2n-3 - 2n-3 + 2n-4

 = 32 + 16 + 16  - 8 - 8 - 8 + 4 

= 68 - 24

= 44.

Please correct me if i am wrong

selected by
0 votes
0 votes

1)When A is candidate Key

then any combination from BCDEF along with A form  Super  Key.

Therefore ,total super key = $2^{5}$ 

2)When BC is candidate Key

In this case any combination from DEF along with BC form  Super  Key.

A is not considered in the case because all the combination of BC with A is counted in first case.

Ex={ABC,ABCD,....ABCDEF} all are counted in case 1.

Therefore ,total super key = $2^{3}$ (All combination from DEF)

3)When CD is candidate Key

In this case any combination from BEF along with CD form  Super  Key.

A is not considered (Similar logic as case B).

Along with we have also find the keys which are counted in case B.

{CDB,CDBE,CDBF,CDBEF} all these values are counted in case B,because all have BC(candidate key of case B).

So,these keys are counted twice because all have CD(candidate key )

Therefore ,total super key = $2^{3}$ (All combination from BEF)-$2^{2}$(ABCD as KEY)

total key = $2^{5}+2^{3}+2^{3}-2^{2}$

Related questions

3 votes
3 votes
2 answers
1
Anmol Verma asked Nov 23, 2016
1,601 views
how to find the no. of sk......give some conceptual thought on this....???
0 votes
0 votes
0 answers
2
Dhoomketu asked Apr 8, 2018
368 views
How to calculate super key of any relation?Pls explain with example.
1 votes
1 votes
1 answer
3
Arnabi asked Oct 26, 2017
892 views