Foreign Key

A foreign key is a column that links one table to another by pointing to the primary key of a different table. It is how relationships between tables are…