Which of the following statements is correct?
A
Step-by-Step Solution
Insight: appears only on left-hand sides so it must sit in every candidate key, appears only on right-hand sides so it can never sit in one — then only three combinations remain to close.
Exam route: , and all equal and each is minimal, so the keys are , , — option A.
Learning route:
Step 1 — the trigger. Every option ends with "the only candidate keys", so the task is exhaustive enumeration plus a minimality proof, not one convenient closure.
Step 2 — classify by appearance in .
: left in , right in — both sides.
: right only — never in a candidate key. (Whenever is known, comes free from , and every key here eventually reaches , directly or through ; so deleting from a key would leave the closure intact, and a key containing could not be minimal.)
: left in , right in — both sides.
: left only — must be in every candidate key.
: left in , right in — both sides.
Step 3 — every candidate key is together with a subset of . Test the three single additions.
: gives ; now fires and adds , giving all of . Check minimality: stops there because needs , and . Both proper subsets fail, so is a candidate key.
: gives ; gives ; completes . Minimality: , . So is a candidate key.
: gives ; gives all of . Minimality: — it never acquires — and . So is a candidate key.
Any two- or three-element addition is a proper superset of one of these three, so none is minimal.
Step 4 — the candidate keys are exactly , , . Option A.
Second pass by back-substitution: option B claims only and , but we just computed with both proper subsets failing, so a genuine third key is missing and B is incomplete. Options C and D both include : , missing and , so is not a key at all; option C also includes , whose closure is missing . Only option A survives both checks.
The tempting wrong path: compute , watch fill in three attributes, glance at and declare a key because "it reached almost everything". That produces option C, and its trimmed twin option D. The break is the single line where the closure is compared with : is absent, and is precisely the attribute nothing in can produce.
Generalisation: an attribute that never appears on a right-hand side must be physically present in every key — never let a closure "almost" cover the relation.
Verification: , and each close to all of and each loses that property when either attribute is removed; , , alone and every set containing all fail. Three keys, matching option A exactly.