1,847 views
2 votes
2 votes
Consider the relation $R\left ( A,B,C,D,E \right )$

$A\rightarrow BC$

$C\rightarrow E$

$B\rightarrow D$

$E\rightarrow A$

Total number of superkeys present in relation will be ____________________

1 Answer

Best answer
3 votes
3 votes
First, find candidate key and they are A,C,E

According to the principle of inclusion and exclusion,

           ∣A ⋃ C ⋃ E∣ = |A| + |C| + |E| - |A ⋂ C| - |A ⋂ E|  - | C ⋂ E| + |A ⋂ C ⋂ E|

                                 = No. of super key using A + No. of superkey using C + No. of superkey using E - No. of superkeys  using A                                               and C - No. of super keys  using A and E - No. of superkeys  using C and E

                                          + No. of super keys using A,C,E

                                 = $2^{n-1}$ + $2^{n-1}$ + $2^{n-1}$ - $2^{n-2}$ - $2^{n-2}$ - $2^{n-2}$ + $2^{n-3}$ , Here n = 5 (No. of attributes in a relation)

                                 = $2^4$ + $2^4$  + $2^4$ - $2^3$ - $2^3$ - $2^3$ + $2^2$

                                 = 28

So the answer is : 28

Note: In general, if we have ‘N’ attributes with one candidate key then the number of possible superkeys are $2^{n-1}$.
selected by

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_
4 votes
4 votes
1 answer
3
Akash Kanase asked Jan 15, 2016
734 views
I think here even with Ph is removed from table we still get 12 Super keys. Because Salary & One of CK must be there.
0 votes
0 votes
1 answer
4
ssm asked 11 hours ago
22 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)