[WEBINAR] The New Normal: Dealing with the Reality of an Unsecure World


Definition - What does Superkey mean?

A superkey is a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table. A candidate key is a closely related concept where the superkey is reduced to the minimum number of columns required to uniquely identify each row.

Techopedia explains Superkey

For example, imagine a table used to store customer master details that contains columns such as:

  • Customer name
  • Customer ID
  • Social security number (SSN)
  • Address
  • Date of birth

A certain set of columns may be extracted and guaranteed unique to each customer. Examples of superkeys are as follows:

  • Name+SSN+Birthdate
  • ID+Name+SSN

However, this process may be further reduced. It can be assumed that each customer ID is unique to each customer. So, the superkey may be reduced to just one field, customer ID, which is the candidate key. However, to ensure absolute uniqueness, a composite candidate key may be formed by combining customer ID with SSN.

A primary key is a special term for candidate keys designated as unique identifiers for all table rows. Until this point, only columns have been considered for suitability and are thus termed candidate keys. Once a candidate key is decided, it may be defined as the primary key at the point of table creation.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.