Everything About ___
Live briefing

Everything about Unique key

Concept in relational database design

In relational database management systems, a unique key is a candidate key. All the candidate keys of a relation can uniquely identify the records of the relation, but only one of them is used as the primary key of the relation. The remaining candidate keys are called unique keys because they can uniquely identify a record in a relation. Unique keys can consist of multiple columns. Unique keys are also called alternate keys. Unique keys are an alternative to the primary key of the relation. In SQL, the unique keys have a UNIQUE constraint assigned to them in order to prevent duplicates. Alternate keys may be used like the primary key when doing a single-table select or when filtering in a where clause, but are not typically used to join multiple tables. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Unique keyA 5-minute orientation
  2. Skim a recent paper: Pu-erh tea unique aroma: Volatile components, evaluation methods and metabolic mechanism of key odor-active compoundsInfluential work since 2022
  3. Pick up a classic book: Drug calculationsThe most-reprinted book on the subject
  4. Read the landmark paper: Fungi took a unique evolutionary route to multicellularity: Seven key challenges for fungal multicellular lifeCited 58 times
  5. Go sideways: Primary keyA closely related topic
  6. Go sideways: Relational modelA closely related topic

📖 Definitions

Noun A set of one or more than one columns or fields of a table that uniquely identifies a record in a database table.

🗂️ The subject at a glance

  1. Summary
  2. Defining keys in SQL

🏆 Landmark papers (most cited)

🆕 Influential since 2022

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics