In relational database design, what constraint uniquely identifies each record in a table and cannot contain `NULL` values?

Answer and explanation

Correct answer: D. Primary Key

  1. Step 1: A Primary Key is a column (or combination of columns) that enforces entity integrity.
  2. Step 2: It must contain unique values for every row and strictly forbids null values (`NOT NULL`).
Answer
Primary Key.
Why not the others: 'Foreign Key' establishes referential links to primary keys in other tables; 'Default Constraint' provides fallback values; 'Check Constraint' validates business rules.

Practise more Python Programming, Data Structures, Algorithms, Networks and Cybersecurity.

Free questions with an explanation for every one, and full timed Saudi Secondary School Certificate mock tests.

In relational database… | Saudi Secondary School Certificate