Consider the relation schema R(A, B, C, D) and a set of functional…

2022

Consider the relation schema R(A, B, C, D) and a set of functional dependencies F = {A → BC, C → A, B → CD}. Which of the following can be a candidate key of R?

  1. A.

    AB

  2. B.

    A

  3. C.

    ABC

  4. D.

    BCD

Attempted by 354 students.

Show answer & explanation

Correct answer: B

  1. Find the Closure of A (A^+):

    • A^+ = {A}

    • Apply A -> BC {A, B, C}

Apply B -> CD {A, B, C, D}

  1. Check for Candidate Key Properties:

    • Since A^+ contains all attributes of the relation, A is a Superkey.

    • Since A is a single attribute, it is automatically minimal (cannot be reduced further).

Therefore, A is a valid Candidate Key.

Options like AB, ABC, and BCD are superkeys but fail the minimality criteria because their smaller subsets can already derive the entire relation.

Explore the full course: Up Lt Grade Assistant Teacher 2025