What is foreign key?
Foreign Key - Let there are two relations in tables R and S. Any candidate key of the relation R that is referred in the relation S is known as the foreign key in the relation S and referenced key within the relation R. The relation R is also known as parent table and relation S is also known as child table.