CBSE Class 12 Computer Science Question 31 of 41

Relational Database and SQL — Question 31

Back to all questions
31
Question

Question 24

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.