Referencing a non-PK field in Oracle
What is the correct way to reference a non-PK field? I don’t understand why this example doesn’t work (the field c23). CREATE TABLE tabla1 ( c11 CHAR(9) PRIMARY KEY, c12 VARCHAR2(10), c13 INTEGER, CHECK(c13 <= 100) ); CREATE TABLE tabla2 ( c21 CHAR(9) PRIMARY KEY, c22 VARCHAR2(10), c23 REFERENCES tabla1(c13) ); >Solution : You can’t.… Read More Referencing a non-PK field in Oracle