logo

Question detail

What is the role of a foreign key?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Relational databases

Exam-style question

Try this first

What is the role of a foreign key?.

  1. A.To provide a link to a primary key in another table
  2. B.To replace every primary key in the database
  3. C.To make every attribute in a table unique by itself
  4. D.To combine all tables into one very large attribute

Model answer

What a good answer should say

  • To provide a link to a primary key in another table

Explanation

Why this works

A foreign key is an attribute used to refer to a primary key in another table, creating a relationship between the tables.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.