178,466 views
22 votes
22 votes
What is a foreign key​

User Loganfsmyth
by
3.1k points

2 Answers

15 votes
15 votes

Step-by-step explanation:

A foreign key is a set of attributes in a table that refers to the primary key of another table. The foreign key links these two tables.

User Rahul KP
by
2.7k points
26 votes
26 votes

Answer:A foreign key is a set of attributes in a table that refers to the primary key of another table. The foreign key links these two tables. Another way to put it: In the context of relational databases, a foreign key is a set of attributes subject to a certain kind of inclusion dependency constraints

Explanation: The foreign key links these two tables. Another way to put it: In the context of relational databases, a foreign key is a set of attributes subject to a certain kind of inclusion dependency constraints

User Alexander  Pravdin
by
3.5k points