Computer Science, asked by ayushgupta9162015, 10 months ago

what is foreign key.​

Answers

Answered by prashantyadav9336
8

Explanation:

A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. ... The concept of referential integrity is derived from foreign key theory. Foreign keys and their implementation are more complex than primary keys

Plzzzz Mark me as brainliest

Answered by guptaridhima280
1

Answer:

A foreign key is a column in a relational database table that provides a link between data in two tables. It acts as a cross-reference between tables because it references the primary key of another table, thereby establishing a link between them. Therefore, When a primary key from

one table appears in another table, it is called a foreign key. It refers to the field in a table which is the primary key of another table. It can contain duplicate values

and a table in a relational database.

Explanation:

  • Foreign keys help you to migrate entities using a primary key from the

  • Foreign keys help you to migrate entities using a primary key from the A foreign key enables you to link two or more tables together.

  • It makes your database data consistent

  • A foreign key can be used to match a column or combination of columns with primary key in a parent tables.

  • SQL foreign key constraint is used to make sure the referential integrity of the data parent to match values in the child table.

hope you like this

pls correct me if I am wrong

Pls mark as brainliest it's my humble request

Thank you very much

Similar questions