logo

AQA A-Level Computer Science practice

Explain how primary keys and foreign keys can be used to relate two tables in a relational database. Include the purpose of each key.

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

At a glance

Question

Type

practice

Style

Topic

Relational databases

Exam-style question

Try this first

Explain how primary keys and foreign keys can be used to relate two tables in a relational database. Include the purpose of each key.

Answer and explanation

Concise answer

A primary key uniquely identifies each record in its own table.

Why this is correct

The answer must distinguish the two roles. The primary key identifies records in its own table, while the foreign key creates the relationship by referring to that primary key in another table.

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