DBMS · Question 7 · Medium

Relation R(A, B, C, D, E) has the functional dependencies A → B, B → C and CD → E. Which of the following is a candidate key of R?

  1. A
  2. AD
  3. AB
  4. CD
Answer and explanation

Answer: B. AD

Explanation: A and D never appear on the right-hand side, so every key must contain both. {A, D}+ = {A, D, B, C, E}, which is all attributes, so AD is a candidate key. A+ = {A, B, C} only.

Previous: Relation R(A, B, C) has the functional dependencies A → B and B → C, and A is… · Next: Transaction T1 reads a row, then transaction T2 updates that row and commits…

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