retagged by
815 views
3 votes
3 votes
A relation $R(P,Q,R,S)$ has $\{PQ, QR, RS, PS\}$ as candidate keys. The total number of superkeys possible for relation $R$ is ______
retagged by

2 Answers

Best answer
9 votes
9 votes
Number of Superkeys which are superset of PQ = 2^2 = 4

Number of Superkeys which are superset of QR = 2^2 = 4

Number of Superkeys which are superset of PS = 2^2 = 4

Number of Superkeys which are superset of RS = 2^2 = 4

Number of Superkeys which are superset of PQR = 2^1 = 2

Number of Superkeys which are superset of PQS = 2^1 =2

Number of Superkeys which are superset of PRS = 2^1 =2

Number of Superkeys which are superset of QRS = 2^1 = 2

Number of Superkeys which are superset of PQRS = 2^0 = 1

 

So, applying the formula of Set theory, the total number of Superkeys possible on given relation are = 4+4+4+4-2-2-2-2+1 = 9
selected by
Answer:

Related questions

1.1k
views
3 answers
8 votes
Bikram asked Aug 26, 2017
1,051 views
Assume that a data file contains $2000$ records that are ordered by a key attribute $K$ , and a primary index on attribute $K$ is built.The size of key ... accesses required to fetch the record using the index (in average case) is _____.
458
views
1 answers
1 votes
Bikram asked Aug 26, 2017
458 views
Assume that a B-Tree is used as an index for a large database table which has six levels (including the root node). If a new key is inserted into this index, then the maximum number of levels possible in the updated tree is ______.
513
views
1 answers
2 votes
Bikram asked Aug 26, 2017
513 views
The above ER diagram depicts a book rental scheme.If this ER diagram is mapped to a relational model, to correctly depict this above scenario, the total number of relations required will be _________.
469
views
2 answers
3 votes
Bikram asked Aug 26, 2017
469 views
$\sigma_{A=B \text{ and } B=C \text{ and } C=A} \bigg( \Pi_A (R) \times \Pi_B (R) \times \Pi_C (R) \bigg)$The number of rows returned by the above relational algebraic expression is ________.