What is the difference between PRIMARY KEY and UNIQUE KEY with NOT NULL constraint?
Hi. in data level we have: Primary key = unique identifier of a row in DB & is NOT NULL. Unique key = unique identifier of a row in DB & is NULL ABLE. in perfect design model we have: Primary key = unique identifier of an entity and is meaningless. Unique key = unique identifier of a entity and is meaningful.