DBMS · Question 27 · Hard

Relation R(A, B, C, D) has the functional dependencies A → B, B → C and C → A. How many candidate keys does R have?

  1. 3
  2. 1
  3. 2
  4. 4
Answer and explanation

Answer: A. 3

Explanation: D appears on no right-hand side, so every key contains D. A, B and C each determine the other two, so AD, BD and CD each determine all four attributes, and none has a smaller key inside it. That gives 3 candidate keys.

Previous: Changing the internal storage of a database, for example adding an index or… · Next: Relation R(A, B, C, D, E) has exactly two candidate keys, A and B. How many…

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