Subject Foreign Key on 2 or more columns
Author svanderclock

in tableA i have some record with the field ID_contact that point to the table ContactA or to the table ContactB. so in this way i can not create a foreign key on my field ID_Contact.

How to do ? i thing by stored procedure, but what is the best way and the most efficient way to do that in store procedure ?

thanks you by advance