Implementation of referential integrity constraint when it is not a primary key-foreign key relationship