CREATE TABLE myTable2 ( ID int NOT NULL PRIMARY KEY, Price int NOT NULL, BarCode int FOREIGN KEY REFERENCES myTable1(BarCode) )