
- DBMS Tutorial
- DBMS - Home
- DBMS - Overview
- DBMS - Architecture
- DBMS - Data Models
- DBMS - Data Schemas
- DBMS - Data Independence
- Entity Relationship Model
- DBMS - ER Model Basic Concepts
- DBMS - ER Diagram Representation
- DBMS - Generalization, Aggregation
- Relational Model
- DBMS - Codd's Rules
- DBMS - Relational Data Model
- DBMS - Relational Algebra
- DBMS - ER to Relational Model
- DBMS- SQL Overview
- Relational Database Design
- DBMS - Database Normalization
- DBMS - Database Joins
- Storage and File Structure
- DBMS - Storage System
- DBMS - File Structure
- Indexing and Hashing
- DBMS - Indexing
- DBMS - Hashing
- Transaction And Concurrency
- DBMS - Transaction
- DBMS - Concurrency Control
- DBMS - Deadlock
- Backup and Recovery
- DBMS - Data Backup
- DBMS - Data Recovery
- DBMS Useful Resources
- DBMS - Quick Guide
- DBMS - Useful Resources
- DBMS - Discussion
Candidate Key in RDBMS
Each table has only a single primary key. Each relation may have one or more candidate key. One of these candidate key is called Primary Key. Each candidate key qualifies for Primary Key. Therefore candidates for Primary Key is called Candidate Key.
Candidate key can be a single column or combination of more than one column. A minimal super key is called a candidate key.
Example
EmployeeID and EmployeeEmail, both can be a Primary key; therefore both are candidate keys. Select any of the as Primary Key for your table, since a table can have only a single Primary Key.
Let us see another example −
Student_ID | Student_Enroll | Student_Name | Student_Email |
S02 | 4545 | Dave | ddd@gmail.com |
S34 | 4541 | Jack | jjj@gmail.com |
S22 | 4555 | Mark | mmm@gmail.com |
Above, Student_ID,
Student_Enroll and Student_Email are the candidate keys. They are considered candidate keys since they can uniquely identify the student record.
- Related Articles
- Candidate Key in DBMS
- Composite Key in RDBMS
- Secondary Key in RDBMS
- Super Key in RDBMS
- Surrogate Key in RDBMS
- Alternate Key in RDBMS
- Foreign Key in RDBMS
- Unique Key in RDBMS
- Difference between Primary Key and Candidate key
- Difference between Super Key and Candidate key
- Difference Between Primary and Candidate Key
- How to implement CANDIDATE key in any MySQL table?
- RDBMS terminologies
- Referential Integrity Rule in RDBMS
- Entity Integrity Rule in RDBMS
