I have 3 tables :
--table A
ID INT
Description VARCHAR(8000)
--table B
ID INT
Description VARCHAR(8000)
--table C
ID INT
ObjectID INT
Type CHAR(1)
ObjectID
column in table C
contains ID
from either table A
or table B
, for example
ID ObjectID Type
----------- ----------- ----
3 10 A
Result above means the ID
with value 10
is coming from table A
. I need to put foreign key on ObjectID
column that references to ID
column in both table A
and table B
. Is this possible?