I put a constraint on a table so that the database only accepts unique Social security numbers. The problem is that If I have a <NULL> value in the database I cannot insert another <NULL> value. I thought that this UNIQUE contraint ignored <NULL>'s. Any ideas??
This is how I created the contraint:
ALTER TABLE Customers
ADD CONSTRAINT UQ_SSN UNIQUE NONCLUSTERED (SSN)
GO
This is how I created the contraint:
ALTER TABLE Customers
ADD CONSTRAINT UQ_SSN UNIQUE NONCLUSTERED (SSN)
GO