The sequence follows like this:<br>1. create table integer(a int,b int,primary key(a,b))<br> --> a table is created with both fields as composite primary<br>2. create table referinteger(a int references integer(a))<br> --> the aim was to create a table with one of the field refering to a field in another table which is composite primary.<br>But it throws error,<br>please find a solution.<br><br>