Skip to content

feat: add Week 4 bad_schema.sql vs schema_v2.sql comparison exercise #46

@DiogoRibeiro7

Description

@DiogoRibeiro7

Proposal

Week 4 provides `bad_schema.sql` and `schema_v2.sql` but the README doesn't clearly explain what students should compare or what the expected differences are.

Add a structured comparison exercise (`comparison_exercise.sql` or markdown) asking students to:

  1. Identify constraints missing from `bad_schema.sql` that exist in `schema_v2.sql`
  2. List the functional dependencies violated in the bad schema
  3. Explain what data anomalies are possible in the bad schema
  4. Run specific INSERT/UPDATE/DELETE statements that succeed on bad_schema but fail on schema_v2

Why

Students need guided discovery, not just two files to diff. Without explicit tasks, the learning outcome ("detect anomalies and integrity violations") is hard to achieve.

Scope / files impacted

  • `course/04_week04_constraints/comparison_exercise.md` (new)
  • `course/04_week04_constraints/README.md` (add to run order)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststudent-facingContent visible to studentsweek-04Week 4: Constraints & validation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions