ORA-02256: number of referencing columns must match referenced columns
hello friends.
Create table form1 (empcid varchar2 (25), empshare varchar2 (10), empedoj date, constraint pkform1 primary key (empcid, empshare, empedoj));
create table sharecapital(loanid varchar2(25), loandt date,empshare varchar2(10),empedoj date, constraint fkform1 foreign key (empshare,empedoj) references form1);
I need to use only empshare and empedoj in sharecapital table. But shows
ORA-02256: number of referencing columns must match referenced columns
So kindly help me to solve this problem
thanks in advance