CBSE Class 11 Informatics Practices Question 27 of 37

Structured Query Language (SQL) — Question 27

Back to all questions
27
Question

Question 21

Differentiate between primary key and candidate key in a relation.

Answer
Primary keyCandidate key
A primary key is a set of one or more attributes/fields which uniquely identifies a tuple/row in a table.A candidate key refers to all the attributes in a relation that are candidates or are capable of becoming a primary key.
There can be only one primary key per table.A table can have multiple candidate keys. Only one of them is chosen as the primary key.
Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.