CBSE Class 12 Computer Science Question 35 of 91

Relational Database and SQL — Question 13

Back to all questions
13
Question

Question 13

Which of the following types of table constraints will prevent the entry of duplicate rows?

  1. Unique
  2. Distinct
  3. Primary Key
  4. NULL
Answer

Primary Key

Reason — A primary key is a set of one or more attributes or fields that uniquely identifies a tuple or row in a table. Therefore, it ensures that each row in the table is unique and prevents the entry of duplicate rows.