edited by
687 views

2 Answers

Best answer
4 votes
4 votes

Q1)R=(A,B,C,D)
Candidate key(AB,DB)- 2CK

Superkeys:-We can find as:-

CASE:1

X=1st Candidate key AB = AB_ _ =22  

Y=2nd Candidate key DB = _ B_D =22

CASE:2

X∩ Y=   Due to both AB and DB candidate key AB_D=2

According to Inclusion-Exclusion

n(X U Y) = n(X) + n(Y) - n(X∩ Y)

So,no of superkeys = 4+4 -2 = 6

AB,ABC,ABD,DB,ADB,CDB 

selected by
0 votes
0 votes
6 sk

total # sk's = # sk's over prime attributes *(2^# non-primes attributes)

here 3 sk's possible over prime attributes {AB ,DB, ABD}

here only one non-prime remains C

so total # sk's = 3*(2^1)

=6
edited by
Answer:

Related questions

7 votes
7 votes
1 answer
1
Lakshman Bhaiya asked Sep 5, 2017
604 views
$R=(A,B,C,D,F,H)$Candidate key$=(AEH, BEH, DEH)$How many super key possible?
9 votes
9 votes
4 answers
3
saket nandan asked Apr 7, 2016
15,981 views
a relation R(A,B,C,D,E,F,G,H)and set of functional dependencies are {CH->G,A->BC,B->CFH,E->A,F->EG }then how many possible super keys are present ?