Applied edition · 44 planned hours · Unpiloted · Human review pending. Self-review is not a credential; the full 108-hour semester remains unfinished. No browser SQL execution.

Download Markdown

Relational Data & SQL — learner guide

This is the eight-unit applied self-study edition of Relational Data & SQL. Its 44-hour workload is an unpiloted estimate including reading, practice, project, review, revision and later-day transfer. Unit 5 is counted once. The retained 12-week/108-hour intermediate semester remains unfinished. Independent assistant content/technical checks do not replace human subject review, learner piloting or independent assessment; those remain pending. Self-review and saved review marks are not grades, credentials or evidence of independently demonstrated competence.

This learner-distribution wrapper supplies navigation and setup; original teaching, tasks, keys, diagrams, data and executable code are unchanged. Keep both sibling folders together.

Begin here

  1. Read the course guide, retained prerequisites and entry diagnostic.
  2. Follow its eight-unit sequence and keep first attempts in the workbook.
  3. Use the data dictionary to predict outputs, then use the local route below if your device has a suitable runtime.
  4. Complete the independent project, rubric and later-day transfer before comparing the explained keys.
  5. Read scope and remaining semester gaps, learner readiness notice and rights/provenance notice.

Actual local SQL route — no hosted runner

Required for execution: an already available Python 3 installation with its standard-library sqlite3 module, or a suitable already available SQLite application. No Python programming prerequisite, package install, account, network connection, paid product or external upload is required by the course. If neither runtime exists on your device, use the complete text/paper route and label execution pending. We do not claim working mobile/browser SQL execution or provide an installer.

Validated runtime: Python 3.12.14, SQLite 3.53.1. Check yours:

python3 -c "import sqlite3,sys; print(sys.version.split()[0], sqlite3.sqlite_version)"

From this folder:

python3 run.py base --query u01_inventory
python3 run.py independent --query u08_project_session_report
python3 run.py changed --query u07_bounds
python3 run.py empty --query u07_bounds
python3 -m unittest -v

On a system where the executable is named python, substitute that name. The runner uses the real SQLite engine, rebuilds a fresh in-memory database, executes one SELECT and prints columns/rows plus fixture/runtime metadata as JSON. null is SQL NULL, not zero. Nothing is sent anywhere and no database file is saved. A zero-row result can be correct.

To try your own answer, save one SELECT statement in a local text file, for example my-answer.sql:

SELECT reg_id,seats FROM registrations WHERE seats>=2 ORDER BY seats DESC,reg_id;

Then run:

python3 run.py base --file my-answer.sql

The runner rejects mutations/attachments and multi-statement queries, limits result rows to 2,000 and interrupts long-running queries after a bounded SQLite instruction budget. These are lesson safeguards, not a hardened SQL sandbox: do not host it as a service or run unknown third-party queries. Keep only supplied synthetic data. A rejected query does not erase your saved SQL file, but no automatic answer-saving is provided.

If the SQLite version differs

The default runner refuses to present a different runtime as the pinned baseline. An existing SQLite version supporting STRICT tables (3.37.0 or later) may execute the SQL, but only 3.53.1 is validated here. To explicitly test your existing version without a testing claim:

python3 run.py base --query u01_inventory --allow-other-version

The result states matches_validated_runtime: false. Retain that label and compare all relevant outputs; a successful query is not cross-platform validation. Older SQLite versions may fail at schema loading. The exact-version unittest intentionally fails on a mismatched runtime. Do not install software merely to make this course's status look green.

Existing SQLite application alternative

Open a new disposable database, execute data/schema.sql, then exactly one of data/base.sql, independent.sql, changed.sql or empty.sql, followed by your SELECT. The fixture files add data to the schema; they are not standalone scripts. Never load them into an existing personal or production database. The Python route performs these steps for you and is the route tested here. CSV files are inspectable source copies with a documented literal NULL convention, not automatic imports.

Package integrity

Each sibling MANIFEST.json lists checksums of the unchanged instructional/code/data files included in this distribution, not the private authoring archive. Generated setup/status/provenance wrappers are identified in the learner-file index. The supplied technical tests check package behavior and arithmetic; they do not grade learners. Preserve your first attempt and actual runtime/output evidence.