The Beginner's Checklist for Writing a SELECT Query

SELECT queries are built in layers. This checklist follows the order most people find easiest: decide what you want, where it lives, which rows to keep, and how to present them. Tick each item as you go.

Before you type

Build the query in layers

Watch out for NULL

When you need totals

When you need another table

Check the result

In your app

The query notebook template is a nice place to save your finished queries, and the visual query builder can show you the shape of each clause.

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.