I have the following two tables.
CREATE TABLE parent ( c1 INTEGER ); CREATE TABLE child ( c1 INTEGER, c2 INTEGER, c3 INTEGER, CONSTRAINT fk_c3 FOREIGN KEY(c3) REFERENCES parent(c1) );
You must have noticed that column c1 NOT the primary key in the parent table. Is there a way to refer to it in the Children table without making c1 as the primary key?
source share