Resources by Learning Stage, From First Table to First App

Resources are most useful at the right moment. This page arranges them by learning stage. For each stage there is one page on this site to start with, one to practise with and a pointer to the official documentation to use when you want the full detail.

Stage 1: what a database is

Start withPractise withOfficial detail
Free web book: what a database isCreate your first SQLite tableThe SQLite documentation's overview of SQL

You are ready to move on when you can explain tables, rows, columns and primary keys to a friend.

Stage 2: reading data

Start withPractise withOfficial detail
A chaptered guide to SELECTTwelve small wins with WHEREThe SELECT reference page for your database

Ready when you can filter, sort, limit and count without looking up the syntax.

Stage 3: designing tables

Start withPractise withOfficial detail
Designing your first relational databaseThe three relationship shapesThe CREATE TABLE and constraints pages in your database's manual

Ready when you can design two or three linked tables for a small idea and explain each key.

Stage 4: joining tables

Start withPractise withOfficial detail
INNER and LEFT JOIN step by stepThe December practice calendar, week 3The joins section of the PostgreSQL tutorial

Ready when you can predict which rows a LEFT JOIN will return before running it.

Stage 5: changing data safely

Start withPractise withOfficial detail
A first look at transactionsCRUD do and don'tYour database's documentation on transactions

Ready when you instinctively test UPDATE and DELETE with a SELECT first.

Stage 6: connecting from code

Start withPractise withOfficial detail
Drivers in four languagesA four-week CRUD planYour driver's getting-started page

Ready when every query in your code uses placeholders and the password lives outside the code.

Stage 7: your first app

Start withPractise withOfficial detail
Putting a database into your first web appFollowing one web form to the databaseYour web framework's database tutorial

How to use this page

Do not rush the stages. Most learners benefit from spending real time on stages 2 to 4, because almost everything later builds on them. If you get stuck, go back one stage; the problem is usually there. For definitions along the way, keep the glossary open in another tab.

A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.

Related pages on this site