One option is to create a materialized Employees view in [Orders], and then use it as the parent for the foreign key.
Of course, this has some disadvantages. In particular,
- You will not be able to perform a complete update of the materialized view without disconnecting the foreign key, so it needs to be updated quickly.
- the keys entered in the EMPLOYEES will not be available for RECORDING until the materialized representation is updated. If this is a critical value, you can configure it to update when committed.
Other alternatives are to control the forced execution of itself through a trigger or through the mail cleaning process. Or convince the DBA that these schemas can be in the same database instance.
source share