Foreign Key: It is a column that comes from a different table and using Foreign key tables are related each other It is the primary key of another table It can be duplicate or null for another table
FOREIGN KEY (fk_col_name) REFERENCES target_table_name (pk_col_name);
how to make primary key and foreign key in sql