Can the same column have primary key & foreign key constraint to another column?
Table1: ID - Primary column, foreign key constraint for Table2 ID Table2
Assigning Primary Key And Foreign key to the same column in a Table:
create table a1 ( id1 int not null primary key ); insert into a1 values(1),(2),(3),(4); create table a2 ( id1 int not null primary key foreign key references a1(id1) ); insert into a2 values(1),(2),(3);