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.
Retained JOIN lab — learner setup
This is Unit 5 of the applied Relational Data & SQL sequence, not a separate course or completed semester. Its four-hour unpiloted estimate is included once in the applied edition's 44 hours. Study Units 1–4 first and retain the course prerequisites in the course guide.
- Read the complete original explanation.
- Attempt the complete workbook, including its independent mini-project and later-day transfer.
- Compare the explained solutions after retaining your attempt.
- Read the scope/readiness notice and rights notice.
Local execution (no installation or persistent database required)
In this directory:
python3 run.py base --query inner_rows
python3 run.py base --query all_value
python3 run.py equal --query distinct_amount_wrong
python3 run.py independent --query item_value_exists
python3 run.py staging --query staging_orphans
python3 -m unittest -vOn systems where the executable is named python, substitute that name. If no suitable runtime is installed, paper tracing remains available, but do not label it executed SQL. No hosted runner or mobile SQL execution is promised.
To try your own answer, save one SELECT query in my-answer.sql, then:
python3 run.py base --file my-answer.sqlEach run recreates the selected fixture in memory and discards it afterwards. The runner denies database attachment and changes after loading, so practice queries cannot attach a real database or alter records. It prints column names and rows as JSON; null represents SQL NULL. Error messages do not mean your previous answer was saved. Keep your query/notes in your own files. Do not paste real data into this package.
Choose fixtures explicitly: base = worked four-order case; equal = base plus a matched fifth order of equal value; independent = different practice case with equal values and zero; delayed = later transfer; staging = base plus an intentionally invalid raw import. They are separate alternatives, not sequential steps on a permanent database. All supplied data SQL files are complete for a new empty database. Do not import them into an existing database.
Tested here: Python 3.12.14, SQLite 3.53.1. SQL is the SQLite dialect; no claim of testing every database product. Integer CAD values simplify this exercise; real currency storage/rounding needs a separately specified design. The Python runner is a local convenience, not a student Python prerequisite.
Runner boundary: this is a local lesson helper for the supplied fixtures, not a hardened hosted SQL service. It has no time/result-size quota, and the JSON display is intended for ordinary scalar lesson values, not arbitrary BLOB outputs. Do not expose it as a server or execute unknown third-party queries. This package has no browser, device or learner-pilot validation.
This distribution wrapper replaces archive-specific status notes only. The unit, workbook, solutions, fixtures, queries, runner and tests are unchanged. Its MANIFEST.json covers only preserved files in this learner distribution. No source review logs are required for learner work; the learner notice states the limits of the checks already performed.