Computer Science, asked by Tragicgirl773, 5 hours ago

Explain Foreign key & Unique key.

Answers

Answered by priyatoshruidasabcd
1

Answer:

1. A primary key is used to ensure data in the specific column is unique. A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables. 2. It uniquely identifies a record in the relational database table.

please Mark me brainliest

Answered by worldfrozen984
3

Answer:

A foreign key- is a column or group of columns 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.

Unique Key- is a column or set of columns that uniquely identify each record in a table. All values will have to be unique in this Key. A unique Key differs from a primary key because it can have only one null value, whereas a primary Key cannot have any null values.

Hope it helps you

Similar questions