- Explain table and row.
- Apply today's ideas in a working implementation.
- Test normal and failure behaviour before sharing the result.
- table
- row
- primary key
- foreign key
- schema
A database stores facts reliably beyond one program run. Model entities first, then relationships. A primary key identifies a row; a foreign key connects it to another table.
Plan input, processing, output, and failure behaviour before coding. Make a small working version first; add complexity only after observing correct output.
CREATE TABLE students (id INTEGER PRIMARY KEY, name TEXT NOT NULL);Draw student, course, and enrolment entities.
Write CREATE TABLE statements for student and course.
Design a schema for a small library.
A schema identifies tables, keys, and relationships.
Read an existing project and list its persistent data.
- Official Python documentation
- Week resources
- Existing retained repository material where relevant