Computer Science, asked by anushri1677, 4 months ago

what is primary key and foreign key?​

Answers

Answered by havellshavells
2

Answer:

A foreign key is a column or a set of columns in one table that references the primary key columns in another table. The primary key is defined as a column (or set of columns) where each value is unique and identifies a single row of the table

Explanation:

please mark as brainlist

Answered by jhanvichampawat
3

Primary key:

In the relational model of databases, a primary key is a specific choice of a minimal set of attributes that uniquely specify a tuple in a relation. Informally, a primary key is "which attributes identify a record", and in simple cases are simply a single attribute: a unique id.

Foreign key :

Simply put, a foreign key is a set of attributes in a table that refers to the primary key of another table.

I hope it helps you.

Be happy.

Explanation:

Stay Safe Stay Healthy...

Similar questions