DSA Factory
Free Keys, ER and normalization lessonsKeys, ER and normalization · Stage 0 · Relations and keys · Step 1

Relations and keys

What a relation is, and how super keys, candidate keys, primary keys and foreign keys pin down rows and tie tables together. About 14 minutes.

Quick check

A table has attributes (A, B, C), and {A} is a candidate key. Which set is a super key but not a candidate key?

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

{A, B}. It contains the key {A}, so it is unique, but removing B still leaves a key: not minimal.

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