Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).

Knowledge/A Level/H446/01 Computer systems/Databases/Referential integrity

Referential integrity

1.3.2 Databases

Practise exam questions

Databases — Note 5 of 6

Candidates need to understand what is meant by referential integrity, and why this is desirable in a database.

What you need to know

Referential integrity ensures that the links between tables in a relational database remain consistent. Every foreign key value must refer to a record that actually exists in the linked table.

What to know

  • A DBMS enforces referential integrity by preventing actions that would break a link.
  • Example: an order cannot be added for a customer ID that does not exist in the CUSTOMER table.
  • Example: a customer cannot be deleted while orders still refer to them, unless the related orders are also deleted (cascade delete).
  • Cascade update: if a primary key value changes, matching foreign keys are updated automatically.
  • Without referential integrity, a database can contain orphan records that refer to missing data, giving incorrect query results. It is broken when a primary key is deleted or changed without the change cascading, or when a record is added with a foreign key that doesn't exist.

Key terms

Referential integrity

A rule that every foreign key value must match an existing primary key value in the related table, so no record refers to data that does not exist.

Exam technique

  • Tip:Explain referential integrity using the tables in the question, e.g. 'every ClassID in the Students table must exist in the Classes table'.
  • Mistake:Saying that deleting a 'many'-side record (e.g. an order) also deletes its customer. A cascade only goes from the 'one' side to the 'many' side: deleting a customer can remove their orders, never the reverse.
  • Mistake:Mixing up referential integrity with atomicity. Referential integrity is about foreign keys matching primary keys; atomicity (ACID) is about a transaction happening completely or not at all.

Past exam questions

  • November 2020Paper 1Q1(e)2marks
  • June 2019Paper 1Q7(a)3marks

Ready to test yourself?

Practise 1.3.2 questions
← Previous noteSQL: interpret and modify1.3.2 DatabasesNext note →Transaction processing, ACID, record locking and redundancy1.3.2 Databases

Back to Databases

Databases

Note 5 of 6

  1. 1Relational databases, flat files, keys, entity relationship modelling, normalisation and indexing
  2. 2Methods of capturing, selecting, managing and exchanging data
  3. 3Normalisation to 3NF
  4. 4SQL: interpret and modify
  5. 5Referential integrity
  6. 6Transaction processing, ACID, record locking and redundancy
Topic overview