



What remains after a SQL error: the failed row, earlier statements, or an open transaction? These five SQLite investigations ask learners to predict the rows, inspect the evidence and choose recovery that fits the request.
For ages 16–18 after primary/foreign keys, composite UNIQUE constraints, INSERT/SELECT and basic BEGIN/COMMIT. The complete paper route needs no software. A–C and D–E can form two teaching blocks; timing depends on the class.
There are 17 numbered prompts using original fictional camera-loan data. A compares successful and failed separate INSERT statements. B puts two proposed rows into one statement. C explicitly changes the conflict action to OR ROLLBACK. D uses a savepoint to keep an approved prefix while abandoning an optional pair. E inspects a failed deferred foreign-key COMMIT, then uses the supplied authoritative register note to justify a repair. An error alone is not evidence for the correct real-world repair.
Models give remaining rows, transaction states, errors and explained recovery decisions, including why plausible shortcuts fail. They support human feedback; neither the viewer nor the runner marks written explanations.
Both main PDFs contain the same complete 19-page teacher guide, in A4 and Letter. The 37-file ZIP includes separate nine-page learner and seven-page model PDFs in both sizes; whole teacher and learner DOCX/ODT and fixed-layout HTML; four-page complete-A preview copies; instructions, credits and full font terms. Learner-only files omit model paragraphs and recorded outputs. Formats repeat the same five investigations and 17 prompts. Editable files contain native text, code, tables and writing areas. Local Writer exports and edit/save/reopen checks passed; other editors, fonts or edits can repaginate.
The offline teacher browser replays all 29 recorded states, with full tables and errors, keyboard buttons and a complete static route when JavaScript is off. It does not execute SQL or edits. With JavaScript on, Classroom view puts a checkpoint and both tables together; returning to the full page keeps the checkpoint. The optional standard-library Python runner executes the included scripts in fresh in-memory databases, deliberately recording errors and continuing. Use an installed Python 3.11+ with sqlite3; local execution used Python 3.14.4 / SQLite 3.46.1. No account, network, pupil data or installation is needed for paper or replay.
This is a focused SQLite recovery lesson, not a full SQL/ACID course, disk-durability test or exam-board-endorsed assessment. Original text, data, code and design were created and edited with OpenAI Codex (AI). Primary concept references and software/font notices are credited. No classroom trial or automatic updating of models is claimed.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.