118 ◾ Cloud Database Development and Management
indicates that the constraint is a type of foreign key. e keyword REFERENCES speci-
fies the name of the parent table whose primary key column is used as the foreign key
column in the child table. For example, if you want to specify the column ItemID as a
foreign key, use the SQL statement below:
CONSTRAINT Inventory_ItemId_fk FOREIGN KEY (ItemID)
REFERENCES ITEM (ItemID)
As indicated in the above SQL statement, the constraint name is Inventory_ItemId_fk,
which should be unique in the database. e name of the foreign key column is ItemID.
e parent table is ITEM, and the primary key column in the parent table is ItemID.
As you can see in the above SQL statement, two tables are connected by a ...