T
Tom Lewis
I have two tables; "Facilities" and "Providers" that have
a 1:1 relationship when data exists in "Facilities" (using
the "ProvNum" column in each table), but null values are
permitted in the "Facilities" table.
I want to create a unique constraint for the "ProvNum"
field in the Facilities table, but when I do so, I get
unique key violation errors when I try to insert more than
one record with a null for "ProvNum"
How should I structure the relationships, indexes and/or
constraints to enforce this kind of relationship in the
these tables?
TIA
Tom
a 1:1 relationship when data exists in "Facilities" (using
the "ProvNum" column in each table), but null values are
permitted in the "Facilities" table.
I want to create a unique constraint for the "ProvNum"
field in the Facilities table, but when I do so, I get
unique key violation errors when I try to insert more than
one record with a null for "ProvNum"
How should I structure the relationships, indexes and/or
constraints to enforce this kind of relationship in the
these tables?
TIA
Tom