Q1. Let R (ABCD) how many Super Key? With only CK = A
Answer:
Where A is the candidate key and we can get the super key by the combination of other non – key with the candidate key then B should include with A or not included. So, every non – key has two choices included or non – included, with the candidate key (A).
Smallest Super Key = A (not included any non – key)
Largest super Key = ABCD (included all non – key)
Total number of all super key – 8
Q2. Let R (ABCD) how many Super Key? With only CK = A and B
This is the same as the above question but in this case, the candidate keys are two A and B.
Now we first calculate how many super keys possible when the candidate is A:
If we choose B as a candidate key i.e. CK = B
And super key is
From both A as CK and B as CK we got 8 + 8 = 16 super key but some of SK is common to both of them like AB = BA, ABD = BAD, ABC = BAC, ABCD = BACD.
4 are common. So, the total number of distinct super key
How we got because if AB is common we got 2 options.
So, the total number of the super key by using candidate key A and B
Q3. Let R (ABCD) how many Super Key? With only Candidate Key = A, B, C
Now as per the formula total number of super key possible:
Total number of SK
Q4. R (A, B, C, D) how many Super Key? Where candidate key = AB, CD
Q5. R (A, B, C, D) how many Super Key? With only Candidate Key = AB, BD
Q6. R (ABCDE) How many super keys possible where candidate key = AB, A.
Calculate super key when the candidate is AB and A.
But we can’t get 16 super keys because here the question is wrong. Because AB, A two candidates never possible, Candidate is minimal key if A is CK then AB is CK not possible.