3. Unique Key
A unique key is similar to a primary key, but it doesn't have to be the main identifier for a table. It's a column (or columns) that contains unique values, like a primary key.
However, a table can have multiple unique keys, while it can only have one primary key.
Unique keys are handy when you want to make sure that certain columns have distinct values, but they don't serve as the primary way to identify each row.
For example, in a customer table, you might have a unique key for email addresses to prevent duplicate email entries.