I have the following table, Client .
create table Client ( ClientID int identity primary key, TaxID varchar(12), SSN varchar(12) ) GO
A client can have either TaxID or SSN, or both. But anyone must exist.
I am currently applying the rule through the following trigger.
create trigger trgClient_UniqueTaxIDSSN on Client after Insert, Update as
But is there a way to declare a constraint for enforcing a rule?
source share