Databases and SQL Primer
Prepare for PostgreSQL and Prisma by understanding tables, keys, relationships, constraints, and basic SQL.
Lessons
Tables, Rows, Columns, and Data Types
A relational table represents a set of rows with named typed columns.
Lab — Tables, Rows, Columns, and Data Types
Hands-on transfer lab for the preceding concept.
Primary Keys, Foreign Keys, and Relationships
Primary keys identify rows; foreign keys state that a referenced parent must exist.
Lab — Primary Keys, Foreign Keys, and Relationships
Hands-on transfer lab for the preceding concept.
SELECT, INSERT, UPDATE, and DELETE
SELECT describes which rows/columns to read; WHERE filters; ORDER BY makes sequence explicit.
Lab — SELECT, INSERT, UPDATE, and DELETE
Hands-on transfer lab for the preceding concept.
Joins, Grouping, and Aggregation
INNER JOIN keeps matching rows; LEFT JOIN preserves left rows even without a match.
Lab — Joins, Grouping, and Aggregation
Hands-on transfer lab for the preceding concept.
Transactions and Indexes
A transaction groups operations so atomicity/consistency expectations can be preserved.
Lab — Transactions and Indexes
Hands-on transfer lab for the preceding concept.