Practise a question
Work through a past-paper SQL question. Run your code, inspect the results and compare your answer with the mark scheme.
Choose a questionDATABASE LAB
Choose an SQL question, or explore a database with your own queries.
WRITE · RUN · EXPLORE
Choose a starting point. Explore the data, then write SQL to make it your own.
Your practice copy is separate from the website’s data. No real student records are used.
DATABASE LAB
Run all code, or select a section and run only that selection. Ctrl/⌘ + Enter runs it.
Click a table to inspect its records and fields. Use SQL to create tables, insert records, add columns and change data.
This Lab uses SQLite SQL. Some syntax differs from exam SQL. It does not award marks.
Each run is applied only if every statement succeeds. Stop or an error leaves the previous database unchanged.
Temporary work is saved in this browser tab when storage is available, not to your account.
SQLite runtime: sql.jsRun your script, or highlight a selection to run just that part.
Write a query and press Run SQL.
Choose a table to inspect its records.