logo

AQA A-Level Computer Science practice

What is the role of a foreign key?

Try the question first, then check the answer and practise the same topic again.

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

Answer and explanation

Concise answer

To provide a link to a primary key in another table

Why this is correct

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

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions