1. Home
  2. Computer Science MCQs
  3. MySQL
  4. What is a candidate key?

Added 19 Jan 2024

What is a candidate key?

  1. Used to uniquely identify a row Correct answer
  2. Alias for primary key
  3. Used to identify a column
  4. Alias for foreign key

Correct answer

A. Used to uniquely identify a row

16 views

MCQSEXAM

Explanation

A candidate key is a column, or minimal set of columns, that can be used to uniquely identify a row. A table may have several candidate keys; one is chosen as the primary key and the rest become alternate keys.

It is therefore not just another name for the primary key, and certainly not for a foreign key.

For more solved questions like this one, see Database Management Systems MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs