Explain Foreign key in SQL?

It is a collection of fields in one table that uniquely identifies a row of another table. In simple words, the foreign key is defined in a second table, but it refers to the primary key/unique key in the first table.

Suggest An Answer

No suggestions avaliable!

Latest post from SQL Interview Questions

Ask Question