GovCIO Interview Question

What is the difference between a primary key and a unique key?

Interview Answer

Anonymous

Feb 4, 2025

A Primary Key uniquely identifies each record in a table and cannot have NULL values. A Unique Key also enforces uniqueness but can contain NULL values (one or more).