What is the difference between a PRIMARY KEY and a UNIQUE constraint?
Q1. What is the difference between a PRIMARY KEY and a UNIQUE constraint?
Answer: A PRIMARY KEY cannot be NULL, while a UNIQUE constraint can have one NULL value
Explanation: A PRIMARY KEY uniquely identifies each row and cannot be NULL, while a UNIQUE constraint ensures uniqueness but allows one NULL value.