What is a “foreign key” in a relational database ?

2025

What is a “foreign key” in a relational database ?

  1. A.

    A key that uniquely identifies a record in a table

  2. B.

    A key that links two tables together

  3. C.

    A key used to store multiple values

  4. D.

    A key that prevents null values

Attempted by 255 students.

Show answer & explanation

Correct answer: B

A foreign key is a field in one table that refers to the primary key of another table, establishing a link between them.

Explore the full course: Niacl Ao It Specialist