"" FK .
, .
, , SEMIMINUS RA.
, :
SELECT...
FROM table_with_FK
( ... FROM table_with_PK WHERE PK_attribute1 = FK_attribute1 PK_attribute2 = FK_attribute2 ...
) < , >
( EXCEPT):
SELECT FK_attributes
FROM table_with_FK
WHERE < , > SELECT PK_attributes_possibly_renamed FROM table_with_PK
;
EDIT ( " IBM". "" - .)
The OP clearly indicates that it is DEFINITELY interested in data integrity. Therefore, he really should use a DBMS product that offers some professional support to ensure data integrity. I sincerely hope that Oracle and IBM-sized products are NOT the only ones doing this.
source
share