878 views
0 votes
0 votes
How many Super keys Possible for R(A,B,C,D,E) with

1. {A,BC,DE} as the keys ?

2. {A,BC,CDE} as the keys ?

1 Answer

3 votes
3 votes

1) R (A,B,C,D,E)

 Candidate key :  {A,BC,DE}

  = super-key(A) + super-key(BC) + super-key(DE) - super-key(ABC) - super-key(ADE) - super-key(BCDE) + super-key(ABCDE)

  = 24 + 23 + 23 -22-22 -21 + 20

  = 23

 

2)

R (A,B,C,D,E)

   Candidate key :  {A,BC,CDE}

  = super-key(A) + super-key(BC) + super-key(CDE) - super-key(ABC) - super-key(ACDE) - super-key(BCDE) + super-key(ABCDE)

  = 24 + 23 + 22 -22 - 21 -21 + 20

  = 21

 

Related questions

1.4k
views
2 answers
3 votes
Ram Swaroop asked Jan 30, 2019
1,371 views
Consider the following relation R(A1, A2,...A15) with (A1,A2, ... A6) of relation R are simple candidate key. The number of possible superkey in relation R is_
2.8k
views
1 answers
1 votes
hacker16 asked Jan 17, 2018
2,769 views
R (A1, A2, ….An) and every (n-2) attributes of R forms a candidate key. How many superkeys are there in R?a) $_{n-2}^{n}\textrm{C}$b) $_{n-2}^{n}\textrm{C}$ * 4c) $_{n-2}^{n}\textrm{C}$ * nd) $_{n-2}^{n}\textrm{C}$ + n +1
3.6k
views
1 answers
2 votes
Na462 asked May 17, 2018
3,555 views
Relation R(A1, A2, A3 ..... An) n attributes. On this relation m simple candidate key (m ≤ n). How many super keys possible in this relation?A. 2m ... by taking instances and solve it, but plz without it what's the logic behind the answer?
233
views
1 answers
0 votes
ssm asked Apr 18
233 views
R(A1, A2,A3,A4....AN). How many super keys possible in relation? If (A1 is candidate key, A2 is candidate key, A3 is candidate key)