
Originally Posted by
susarlasireesha
a foreign key is a referential constraint between two tables. The foreign key identifies a column or a set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. The columns in the referencing table must form a primary key or unique key in the referenced table
If referenced table contains unique key and referencing table referes that (unique key) key then it works
simple example
create table emp (
empno number ,
deptno number references emp15(empno), -- references itself
empname varchar2(20),
CONSTRAINT key_unique UNIQUE(empno)
)