# Course guide and progression

**Identity:** `relational-data-sql` (Relational Data & SQL). **Release scope:** bounded applied sequence inside the retained programme identity. **Audience:** learners with basic table/source-control literacy and the prerequisite evidence below, new to SQL syntax. The retained programme labels the full semester intermediate; this sequence does not silently relabel that programme beginner or remove prerequisites.

## Retained preparation

The actual Business profile requires:
- `spreadsheet-foundations.O1–O3`: inspectable tidy workbooks, references/lookups/aggregation/validation with control totals, and stress-tested scenario models with an audit log.
- `data-ethics-stewardship.O1–O2`: purpose/necessity/identifiability reasoning and task-based access, retention, provenance and sharing controls.
- `introductory-statistics.O1`: population/sample/unit/variables/missingness definitions and accurate descriptive comparisons.

Those expanded programme competencies are not automatically established by completing shorter existing introductory lessons. Keep evidence or use the diagnostic below; no prerequisite course is reauthored here. Python is a local runner implementation, not a learner prerequisite or duplicate Python course. Statistical reasoning is applied, not retaught as a replacement course. Fee cents are units/control data, not a competing accounting unit.

### Entry diagnostic (self-check, not admission certification)

1. Given two bookings reserving 1 and 3 seats, distinguish record count from seat total and state the mean booking size.
2. Explain why an unknown count should not be silently written as zero.
3. Describe how to preserve a source file and record a corrected output without overwriting the original evidence.
4. Remove an unnecessary personal contact field from a planning summary and explain purpose/access/retention ownership.
5. Identify the population and denominator in “8 of 11 recorded seats attended”; state one limitation if three other booked seats are unknown.

**Diagnostic key:** 2 records,4 seats,2 seats/booking; missing is not observed zero; preserve source plus dated correction/output and reproduction note; share only needed aggregate fields with an accountable role/policy; known-seat denominator11 excludes the unknown3 and is not automatically the complete booked population. If these ideas are unfamiliar, revisit the corresponding retained foundations before claiming programme-level readiness. Reading this key is not evidence of mastery.

## Sequence

| Unit | Teaching and practice | Suggested hours* | Cumulative evidence |
|---|---|---:|---|
|[1 Questions, grain and keys](units/01-questions-grain-keys.md)|Question contract; entities/keys; a small normalization example|5|Question/grain/source note|
|[2 SELECT, filters and sort](units/02-select-filter-sort.md)|Boundaries, complete order, integer units and display|4|Saved selection + boundary test|
|[3 NULL and quality](units/03-null-and-quality.md)|Unknown/zero/no-row; staging, duplicate identities and invalid claims|5|Quality log|
|[4 Groups and denominators](units/04-groups-and-denominators.md)|Aggregates, HAVING, pooled rates and empty input|5|Grouped reconciliation|
|[5 Retained JOIN lab](units/05-join-bridge.md)|Fan-out, entity preservation, unmatched/equal values; full existing independent lab|4|JOIN mini-project + transfer bridge|
|[6 CASE, subqueries and CTEs](units/06-case-subqueries-ctes.md)|Branch meaning, existence tests and stage grain|6|All-session query + stage checks|
|[7 Uncertainty communication](units/07-uncertainty-and-communication.md)|Logical bounds, different ratios, justified next steps|5|Coordinator note|
|[8 Reproducible project](units/08-reproducible-project.md)|Independent package, corrections, changed/empty data and later-day transfer|10|Six-file handoff + revision memo|

*44 hours total is an **unpiloted design estimate** within the earlier 40–50-hour suggestion. It includes reading, guided/independent practice, projects, answer review, revision and later-day transfer; do not add these again as extra hours. Unit 5 is counted once. Actual time may differ substantially. Eight units are not eight weeks, university credits or an equivalent to the retained 108-hour plan.

## Learning outcomes and evidence

U1–U8 are **sequence-local labels**, not new canonical course or programme outcome IDs. They map to the retained outcomes in `outcome-map.json`. Every unit has guided practice, independent work, explained keys and a rubric criterion; Unit 5 retains its original independent mini-project and delayed transfer.

- U1: frame a question and small relational model at explicit grain/keys.
- U2: select/filter/order/calculate with tested boundaries and units.
- U3: investigate missing, duplicate, invalid and unmatched records responsibly.
- U4: aggregate and reconcile with correct denominators and empty behavior.
- U5: preserve entity populations across joins and demonstrate counterexamples.
- U6: compose CASE/subquery/CTE analyses with inspectable stage contracts.
- U7: communicate measures, logical bounds and limitations without causal overclaim.
- U8: deliver a reproducible local project with controls and changed-data evidence.

## How to learn from the keys

Attempt first and keep the original. Compare output **and reasoning**: a right value from a wrong method can fail changed data. Record one correction and the underlying rule. Use a later-day retry without the key to test transfer; do not label the delay completed in advance. The self-review rubric diagnoses gaps but does not certify competence.

The authoritative scope boundary is [SCOPE-RECONCILIATION.md](SCOPE-RECONCILIATION.md). The teaching is authored, but release, subject review, accessibility rendering/device checks, learner piloting and independent assessment are separate states recorded in [READINESS.md](READINESS.md).
