DBMS · Question 12 · Hard

Relation R(A, B, C, D) has exactly one candidate key, A. How many superkeys does R have?

  1. 4
  2. 16
  3. 15
  4. 8
Answer and explanation

Answer: D. 8

Explanation: A superkey is any attribute set containing a candidate key. Every set that contains A is a superkey, and the other three attributes can each be in or out, giving 2^3 = 8 superkeys.

Previous: In a B+ tree index, where are the pointers to actual data records stored? · Next: Relation R(A, B, C) has the single functional dependency B → C. It is…

Practise dbms

Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.

More dbms questions

More technical & programming practice

SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge