Introduction
The UNIQUE constraint makes sure that no two rows in a table have the same value in a specific column or group of columns.
When you want to make sure each email address in a user list is different.
When you want to prevent duplicate product codes in an inventory.
When you want to ensure each username in a system is unique.
When you want to avoid repeated phone numbers in a contacts table.