Foreign Key in SQL
๐ข What is a Foreign Key in SQL?
A foreign key is a column (or a group of columns) in one table that links to the primary key in another table.
It is used to maintain relationships between tables.
It ensures data consistency by restricting invalid ...
yesamitsingh.hashnode.dev2 min read