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/SQL: interpret and modify

SQL: interpret and modify

SQL – Interpret and modify. See appendix 5d.

1.3.2 Databases

Practise exam questions

Databases — Note 4 of 6

Candidates should have experience of using SQL to edit and modify data in a database. They should understand the need for SQL as a standard language. Candidates should be able write and follow scripts using the SQL commands listed in appendix 5d.

What you need to know

Structured Query Language (SQL) is the standard language for querying and changing relational databases. You need to be able to read, write and amend SQL using the commands in appendix 5d.

What to know

  • SELECT chooses the fields to return; FROM names the table(s); WHERE filters records using conditions. To describe what a query does, say which fields it returns, from which table, for which records, and give the results if data is shown.
  • AND / OR combine conditions. LIKE matches patterns, using % as a wildcard for any number of characters. * after SELECT returns all fields.
  • JOIN combines records from two tables where a field matches (equivalent to INNER JOIN; outer joins are not required).
  • Nested SELECT: a query can be used inside another query's WHERE clause.
  • INSERT INTO ... VALUES adds a record; DELETE FROM ... WHERE removes records; DROP TABLE deletes a whole table and its data.
  • SQL is a standard language, so the same queries work across many different database systems.

Code examples

SQL commands from appendix 5d
sql
-- Fields from one table with conditions
SELECT FirstName, Surname
FROM Students
WHERE Year = 12 AND Surname LIKE 'S%'

-- Join two tables on a shared key
SELECT Students.Surname, Classes.Room
FROM Students
JOIN Classes ON Students.ClassID = Classes.ClassID

-- Nested SELECT
SELECT Surname FROM Students
WHERE ClassID IN (SELECT ClassID FROM Classes WHERE Room = 'C4')

-- Add, remove and drop
INSERT INTO Students (StudentID, FirstName, Surname, Year)
VALUES (1042, 'Sam', 'Patel', 12)
DELETE FROM Students WHERE StudentID = 1042
DROP TABLE OldResults

Key terms

SQL

A declarative language used to define, query and manipulate data in relational databases.

Exam technique

  • Tip:Use the exact table and field names given in the question, and put text values in quotation marks but field names without them. List only the fields asked for: SELECT * loses the mark when specific fields are wanted. Compare with a single =, never ==.
  • Mistake:Writing DELETE FROM Students without a WHERE clause, which deletes EVERY record.
  • Mistake:Writing DELETE * FROM Students or listing fields after DELETE. DELETE removes whole records, so it takes no * or field names: DELETE FROM Students WHERE StudentID = 1042.
  • Tip:If a condition uses a field held in another table, link the tables: join them (JOIN ... ON, or a WHERE matching the foreign key to the primary key) or use a nested SELECT. Prefix field names with their table name, e.g. Students.ClassID. Pick ONE of these methods for the whole query: marks from different methods are not added together. If two tables only connect through a link table, join each pair on its shared key, e.g. Students to Enrolments on StudentID, then Enrolments to Courses on CourseID.
  • Tip:UPDATE is not in appendix 5d but has been asked for, so learn its form: UPDATE Students SET Year = 13 WHERE StudentID = 1042. Other commands (e.g. ORDER BY) will be explained in the question if needed.

Past exam questions

  • June 2026Paper 1Q3(b)(ii)5marks
  • June 2025Paper 1Q6(c)(i)3marks
  • June 2025Paper 1Q6(c)(ii)5marks
  • June 2023Paper 1Q4(f)(i)2marks
  • June 2022Paper 1Q2(b)5marks
  • November 2021Paper 1Q1(d)(ii)4marks
  • June 2018Paper 1Q3(a)2marks
  • June 2018Paper 1Q3(b)3marks
  • June 2017Paper 1Q7(c)3marks
  • June 2017Paper 1Q7(d)3marks

Ready to test yourself?

Practise 1.3.2 questions
← Previous noteNormalisation to 3NF1.3.2 DatabasesNext note →Referential integrity1.3.2 Databases

Back to Databases

Databases

Note 4 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