Add-on for CS Test Buddy
SQL Reference
A SQL reference for A-level Computer Science and beyond: 103 entries of standard SQL, with 409 examples that all run on SQLite — each shown with the exact result it gives.
- Version
- 2026.1118.0
- Released
- 18 Nov 2026
Get SQL Reference
Free
Get started
CS Test Buddy runs inside PrimeForge, the app that installs, runs and updates your PrimeForge apps on this Mac.
More for CS Test Buddy
Foundation Pack
The complete AQA A-level Computer Science (7517) knowledge base: 459 knowledge points in 16 strands, from programming and data structures to networking, databases and functional programming. Free, and installed with CS Test Buddy.
AQA 7517 Original Practice Questions
481 original practice questions for AQA A-level Computer Science (7517), Paper 1 and Paper 2 — across every section of the specification, all twenty question types and three levels of difficulty — plus 163 knowledge-check questions.
AQA Assembly Practice
47 graded exercises and 12 worked examples in the assembly language AQA uses in A-level Computer Science (7517) Paper 2, for CS Test Buddy's built-in assembly simulator.
AQA A-level Computer Science (7517) Official Past Papers
The official AQA A-level Computer Science (7517) papers: the 2015 specimen papers and the November 2020, November 2021 and June 2022–2025 Papers 1 and 2 — 197 questions with the official mark schemes.
Notebooks
Jupyter-style notebooks for Python, inside CS Test Buddy. Write a few lines, run them, see the result underneath, and keep your notes right beside the code.
SQL Lab
A SQL editor with a real database behind it, for learning SQL the only way that works: by writing it. Type a statement, run it, and see exactly what comes back.
UML Studio
A visual UML tool for learning object-oriented programming and modelling: draw a diagram, generate the Python, and run it in CS Test Buddy.
Python Reference
A complete Python reference for A-level Computer Science and beyond: 332 entries for Python 3.14, with 1166 examples you can run inside CS Test Buddy.
About this add-on
A SQL reference for A-level Computer Science and beyond: 103 entries of standard SQL, with 409 examples that all run on SQLite — each shown with the exact result it gives.
- Everything you query with. SELECT, WHERE with LIKE, IN, BETWEEN and IS NULL, ORDER BY, DISTINCT and LIMIT; inner, outer and self joins, and joining in WHERE as AQA writes it.
- Grouping and subqueries. COUNT, SUM, AVG, MIN and MAX, GROUP BY and HAVING; subqueries, EXISTS, UNION, INTERSECT and EXCEPT, and common table expressions with WITH, recursive ones included.
- Changing and defining data. INSERT, UPDATE and DELETE; CREATE TABLE with types, primary and foreign keys, NOT NULL, UNIQUE, CHECK and DEFAULT; ALTER TABLE, indexes, views and transactions.
- Functions. Text, number, NULL and date-and-time functions, and window functions for rankings and running totals.
- The errors you will meet. What each common SQLite error message means and how to fix the statement.
- SQL in the exam. Exactly what AQA 7517 asks for, and a method for writing SQL by hand in an exam answer.
- Graded and checked. Every entry is tagged core (for the exam), extended or advanced and checked against the official SQLite documentation; every example was run on SQLite 3.54, the same engine as SQL Lab. Where SQLite differs from standard SQL, the entry says so.
- Your notes stay with it. Highlight, underline, add notes and ask the AI about any entry.
Opens under Learn → Language Reference. With SQL Lab, it is also a Reference tab beside your query (CS Test Buddy 1.6.1 or later), where one click puts an example into the editor. Updated by installing a newer version of this add-on. Needs CS Test Buddy 1.5.0 or later.
After installing, Language Reference appears under Learn in the sidebar (with more than one reference installed, choose SQL (SQLite)). Browse by category, filter to Core for exam essentials, or search for a keyword such as JOIN or GROUP BY. In SQL Lab, open the Reference tab and press Insert into the editor on an example to put it in the editor.