Article ID: 153370
Article Last Modified on 10/16/2003
t1: (col1, col2)
primary key (col1,col2)
t2: (col1 null, col2 null)
foreign key (col1,col2) references t1
If t1 contains one row:
col1 col2
---- ----
A 2
check (fk MATCH [PARTIAL | FULL] (select ck from T))
The referential constraint is satisfied if and only if, for each row r2 of the referencing table, either (a) at least one component of r2.fk is null, or (b) T contains exactly one row, r1 say, such that the comparison condition "r2.fk = r1.ck" evaluates to true.
Keywords: KB153370