11,526 views
34 votes
34 votes
The maximum number of superkeys for the relation schema $R(E,F,G,H)$ with $E$ as the key is _____.

8 Answers

3 votes
3 votes

THE BEST METHOD FOR CALCULATING NO OF SK's:

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

total no of sk's= 1*(2^3)

total no of sk's=8

edited by
3 votes
3 votes

$No. of superkeys = 2^{M - N}$

where, M = Total number of attributes, N= number of attributes in given candidate key

In this question, M = 4 , N = 1, Therefore, no. of superkeys = $2^{4-1} = 2^{3} = 8$


Note  that if multiple candidate keys are given we need to consider set theory to find the superkeys possible.

For example, R(A1,A2,A3,......,An) and Candidate keys = {A1,A2}

then superkeys, $SKs = SK(A1) + SK(A2) - SK(A1A2)= 2^{n-1}+2^{n-1}-2^{n-2} $

1 votes
1 votes
Given E is the key,So if we add any element  with E it will become super key. Now we have 3 element F,G,H. for each element we have 2 option either to include it or not to include it . So resulting no. of superkey is 2 * 2 * 2= 8
–6 votes
–6 votes
15 super keys are possible with E as compulsory attrubite we can add any number of attrubuts from 3 of them.

If we add one of them = 3

If we add two of them = 3*2

If we add 3 of them = 3*2
Answer:

Related questions

33 votes
33 votes
3 answers
1
go_editor asked Sep 28, 2014
7,319 views
Given an instance of the STUDENTS relation as shown as below$$\begin{array}{|c|c|c|c|c|} \hline \textbf {StudentID} & \textbf{StudentName} & \textbf{StudentEmail} & \text...
39 votes
39 votes
4 answers
2
go_editor asked Sep 28, 2014
13,235 views
A prime attribute of a relation scheme $R$ is an attribute that appearsin all candidate keys of $R$in some candidate key of $R$in a foreign key of $R$only in the primary ...
25 votes
25 votes
3 answers
3
go_editor asked Sep 28, 2014
9,909 views
The number of distinct positive integral factors of $2014$ is _____________
27 votes
27 votes
5 answers
4
go_editor asked Sep 28, 2014
11,527 views
Consider the function func shown below: int func(int num) { int count = 0; while (num) { count++; num>>= 1; } return (count); }The value returned by func($435$) is ______...