Database Engineering with PostgreSQL#
Learn relational databases and SQL with PostgreSQL: installation, roles, querying, filtering, ER diagrams and joins, with hands-on tasks on the DVD Rental sample database.
How each session works#
The big idea: the topic in plain words, with an everyday example.
A picture: a diagram of the idea.
Real queries: every SQL statement was run on PostgreSQL 17 and the output you see is what it printed.
Common mistakes: what trips beginners up.
Hands-on exercises: try first, then open the solution (each was run too).
Practice: a quiz for the session.
Tip
All sessions use one small movie database. Create it once with code/00-setup.sql (psql -d course -f 00-setup.sql),
then follow along in psql. Install PostgreSQL first from the Installing PostgreSQL page below if you have not yet.
Sessions
Reference: install and sample data
Querying Data
Filtering Data
Entity Relationship Diagram