{
  "id": "relational-data-sql",
  "title": "Relational Data & SQL",
  "semester": 4,
  "level": "intermediate",
  "role": "required",
  "prerequisites": [
    {
      "course_id": "spreadsheet-foundations",
      "required_outcome_ids": [
        "spreadsheet-foundations.O1",
        "spreadsheet-foundations.O2",
        "spreadsheet-foundations.O3"
      ],
      "competencies": [
        "Construct a tidy documented workbook whose inputs calculations and outputs can be independently inspected",
        "Use references lookups aggregation and validation to reconcile operational records to a stated control total",
        "Build and stress-test a business scenario model with boundary tests error flags and a reproducible audit log"
      ]
    },
    {
      "course_id": "data-ethics-stewardship",
      "required_outcome_ids": [
        "data-ethics-stewardship.O1",
        "data-ethics-stewardship.O2"
      ],
      "competencies": [
        "Justify or remove each field in a proposed collection using purpose necessity and contextual identifiability",
        "Design task-based access retention provenance and sharing controls with accountable role descriptions"
      ]
    },
    {
      "course_id": "introductory-statistics",
      "required_outcome_ids": [
        "introductory-statistics.O1"
      ],
      "competencies": [
        "Define population sample unit variables and missingness rules and produce accurate descriptive comparisons"
      ]
    }
  ],
  "corequisites": [],
  "outcomes": [
    {
      "id": "relational-data-sql.O1",
      "assessed_performance": "Model entities keys relationships and integrity constraints without duplicate facts or ambiguous grain"
    },
    {
      "id": "relational-data-sql.O2",
      "assessed_performance": "Write and validate selection join aggregate and subquery operations against known control cases"
    },
    {
      "id": "relational-data-sql.O3",
      "assessed_performance": "Deliver a reproducible query analysis that preserves provenance access limits missingness and reconciliation to source totals"
    }
  ],
  "modules": [
    {
      "week": 1,
      "learning_and_practice": "Define relational grain entities and data dictionaries",
      "evidence": "Dated working note or practice artifact demonstrating: define relational grain entities and data dictionaries; check against the authored solution or criteria when available."
    },
    {
      "week": 2,
      "learning_and_practice": "Choose primary foreign and candidate keys",
      "evidence": "Dated working note or practice artifact demonstrating: choose primary foreign and candidate keys; check against the authored solution or criteria when available."
    },
    {
      "week": 3,
      "learning_and_practice": "Normalize repeated facts and test dependencies",
      "evidence": "Dated working note or practice artifact demonstrating: normalize repeated facts and test dependencies; check against the authored solution or criteria when available."
    },
    {
      "week": 4,
      "learning_and_practice": "Load synthetic tables with types and constraints",
      "evidence": "Dated working note or practice artifact demonstrating: load synthetic tables with types and constraints; check against the authored solution or criteria when available."
    },
    {
      "week": 5,
      "learning_and_practice": "Filter sort and calculate with explicit null handling",
      "evidence": "Dated working note or practice artifact demonstrating: filter sort and calculate with explicit null handling; check against the authored solution or criteria when available."
    },
    {
      "week": 6,
      "learning_and_practice": "Join tables and detect row multiplication",
      "evidence": "Dated working note or practice artifact demonstrating: join tables and detect row multiplication; check against the authored solution or criteria when available."
    },
    {
      "week": 7,
      "learning_and_practice": "Aggregate with group-level denominator checks",
      "evidence": "Dated working note or practice artifact demonstrating: aggregate with group-level denominator checks; check against the authored solution or criteria when available."
    },
    {
      "week": 8,
      "learning_and_practice": "Use subqueries and common-table expressions",
      "evidence": "Dated working note or practice artifact demonstrating: use subqueries and common-table expressions; check against the authored solution or criteria when available."
    },
    {
      "week": 9,
      "learning_and_practice": "Test constraints transactions and correction workflows",
      "evidence": "Dated working note or practice artifact demonstrating: test constraints transactions and correction workflows; check against the authored solution or criteria when available."
    },
    {
      "week": 10,
      "learning_and_practice": "Plan access permissions and retention boundaries",
      "evidence": "Dated working note or practice artifact demonstrating: plan access permissions and retention boundaries; check against the authored solution or criteria when available."
    },
    {
      "week": 11,
      "learning_and_practice": "Optimize for clarity and inspect query execution logically",
      "evidence": "Dated working note or practice artifact demonstrating: optimize for clarity and inspect query execution logically; check against the authored solution or criteria when available."
    },
    {
      "week": 12,
      "learning_and_practice": "Deliver queries tests results and a reproducible handoff",
      "evidence": "Dated working note or practice artifact demonstrating: deliver queries tests results and a reproducible handoff; check against the authored solution or criteria when available."
    }
  ],
  "project": "Local or browser-sandbox synthetic order database with SQL scripts, test fixtures and a source-to-result reconciliation; no private production connection.",
  "assessments": [
    {
      "id": "relational-data-sql.A1",
      "component": "Schema and key exercises",
      "weight_percent": 15,
      "outcome_ids": [
        "relational-data-sql.O1"
      ]
    },
    {
      "id": "relational-data-sql.A2",
      "component": "Validated join-query lab",
      "weight_percent": 25,
      "outcome_ids": [
        "relational-data-sql.O1",
        "relational-data-sql.O2",
        "relational-data-sql.O3"
      ]
    },
    {
      "id": "relational-data-sql.A3",
      "component": "Integrity and stewardship review",
      "weight_percent": 20,
      "outcome_ids": [
        "relational-data-sql.O2",
        "relational-data-sql.O3"
      ]
    },
    {
      "id": "relational-data-sql.A4",
      "component": "Reproducible database analysis project",
      "weight_percent": 40,
      "outcome_ids": [
        "relational-data-sql.O1",
        "relational-data-sql.O2",
        "relational-data-sql.O3"
      ]
    }
  ],
  "hours": {
    "weeks": 12,
    "teaching_equivalent_per_week": 2,
    "independent_per_week": 7,
    "total": 108,
    "status": "UNPILOTED DESIGN ESTIMATE",
    "teaching_equivalent_definition": "Sequenced explanations, worked demonstrations and guided review. This is a planning measure, not scheduled live contact or a credit conversion.",
    "independent_includes": [
      "reading",
      "practice",
      "project/lab work",
      "assessment preparation and submission",
      "feedback response",
      "revision"
    ],
    "double_count_rule": "Assessment and revision time is inside these totals; cross-course reuse does not add hours or a second completion."
  },
  "assessment_policy": "Future independently assessed program design only: proposed 70/100 overall plus competent (3/4) on every outcome and all integrity/reproducibility gates. These are unvalidated draft progression rules requiring pilot calibration, not a current self-review pass threshold. Self-check completion or a saved reviewed mark does not establish independent competence.",
  "distribution_note": "Retained planned-semester fields only; not a completion or assessment decision. Applied edition 44h unpiloted; full 108h semester unfinished."
}
