Is it possible to create a database such that there are 2 tables across 2 different schemas within the database who reference each other?
I would like to clarify my question with an example.
Consider the tables, EMPLOYEE (empID, empName, deptId) and DEPARTMENT (deptId, deptName). We can impose a foreign key constraint on the EMPLOYEE.deptId. In this case can I have these two tables across two different schemas and still impose the constraint?
The answer is yes.
DB2 does not require both tables in a foreign key relationship to reside in the same schema.