828 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

3 votes
3 votes
2 answers
1
Ram Swaroop asked Jan 30, 2019
1,298 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_
1 votes
1 votes
1 answer
2
hacker16 asked Jan 17, 2018
2,678 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-...
0 votes
0 votes
1 answer
4
ssm asked 19 hours ago
26 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)