DSA Factory
Free Keys, ER and normalization lessonsKeys, ER and normalization · Stage 2 · Functional dependencies · Step 2

Finding candidate keys

Use closure to find every candidate key of a relation, with the shortcut of attributes that never appear on a right side. About 14 minutes.

Quick check

For R(A, B, C) with FDs A → B and B → C, what is the candidate key?

  1. A{A}
  2. B{B}
  3. C{A, B, C}
Show the answer

{A}. A appears on no right side, and {A}⁺ = ABC.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve