I need a way to check that a value in a column is unique if it is not null. There can (and must be, in this case) be any number of records where the column is null. But if the column is not null the value must be unique.
Using a unique constraint does not seem to work, since it only allows one record with a null value.
Any ideas?
Using a unique constraint does not seem to work, since it only allows one record with a null value.
Any ideas?