What is the difference between a primary key and a unique key?
Q1. What is the difference between a primary key and a unique key?
Answer: A primary key uniquely identifies a record, while a unique key ensures uniqueness but can be null
Explanation: A primary key uniquely identifies a record and cannot be null, while a unique key ensures uniqueness but can be null.