A FOREIGN KEY in SQL is a constraint that establishes a relationship between two tables in a relational database. It defines a column (or a set of columns) in one table (child table) that refers to a PRIMARY KEY or UNIQUE KEY column in another table ...