In the context of relational databases, candidate keys and alternate keys are related concepts.
Candidate Key:
Primary Key:
Alternate Key:
In summary, candidate keys are sets of columns that could potentially be used as unique identifiers for rows in a table. The primary key is the chosen candidate key that uniquely identifies each row in the table, and alternate keys are the remaining candidate keys that are not selected as the primary key.