CS FundamentalsHardGATE CS

A ternary relationship Supplies links Supplier, Part and Project, and the rule is: for a given project and part there is at most one supplier. Which attributes form the key of the Supplies relation?

  1. A. (project, part)
  2. B. (supplier, part)
  3. C. (supplier, project, part)
  4. D. (supplier, project)

Correct answer: A. (project, part)

The rule says (project, part) → supplier, so that pair identifies a Supplies tuple. All three keys together form a superkey but not a minimal one; the other pairs allow several tuples per pair.

More DBMS and SQL questions

Exams that ask this topic