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?