edited by
189 views

1 Answer

0 votes
0 votes
With $A_{1}$ as candidate key, the number of super keys, $SK(A_{1})  = 2^{4}$ (any subset of the remaining $4$ attributes including the empty set form a super key.

Similarly with $A_{2}$ as candidate key, the number of super keys, $SK(A_{2})  = 2^{4}$
    
And with $\{A_{1}A_{2}\}$ as candidate key the number of super keys, $SK(A_{1}A_{2})  = 2^{3}.$  

Now, the total number of distinct super keys $SK(A_{1}A_{2}) = SK(A_{1}) + SK(A_{2}) - SK(A_{1}A_{2})$

$\qquad = 2^{4} + 2^{4} - 2^{3} = 16 + 16 – 8 = 32 – 8 = 24.$

So, the correct answer is $24.$
Answer:

Related questions

1 votes
1 votes
1 answer
2
1 votes
1 votes
1 answer
3
gatecse asked Oct 8, 2020
77 views
The following table has two attributes $A$ and $B$ where $A$ is the primary key and $B$ is the foreign key referencing $A$ with on-delete cascade.$$\begin{array}{|c|c|} \...
1 votes
1 votes
1 answer
4
gatecse asked Oct 8, 2020
289 views
Given the following relation $R$$$\textbf{R}$$$$\begin{array}{|c|c|c|c|c|c|c|}\hline \textbf{A} & \textbf{B} \\\hline1 & \text{NULL}\\ \hline1 & \text{NULL}\\ \hline\text...