Database tutorial

PostgreSQL Tutorial

Learn tables, SQL, joins and transactions with a small dataset you can reason about.

Web DevelopmentFree accessBeginner

Where This Fits

Start with a tiny database of resources and tags. Draw the relationships before writing queries, then predict the rows returned by each statement. Small datasets make mistakes visible, especially duplicate results and missing matches in joins.

Move from reading data to constraints and transactions. Ask what should happen if a multi-step operation stops halfway through. Keep all experiments in a disposable learning database and preserve the statements needed to recreate it.

Before You Start

  • Basic computer use
  • A local PostgreSQL setup or suitable learning environment

What to Focus On

  • Tables, keys and constraints
  • Queries, joins and aggregates
  • Transactions and predictable updates

Put It into Practice

Create resources, tags and a linking table. Query resources with each tag, identify untagged items and test how a transaction behaves when one operation fails.

Check Your Understanding

  • Predict query results
  • Explain a key relationship
  • Recreate the learning database from documented steps

Access and Limits

The tutorial and software are free. Setup requires care, and introductory SQL is not a complete guide to production operations or database security.

Using It Offline

Install PostgreSQL and save your exercise files before disconnecting. The local database then works offline.

Check the official source

Follow the learning path
HACKTRONIAN_CLI // COMMAND PALETTE
QUICK_EXEC: