Codington

SQL exercises

Create a users table and run PostgreSQL queries in your browser.

0 of 128 exercises completed

0%
No account needed · Progress saved in this browser
Start practising

Part 1

Foundations

Build a sign-up list, add guests, choose columns, and find people with WHERE.

Beginner · 4 modules

Module 1

Your First SQL Table

Create a users table, add its first person, and read their name with SELECT.

0 of 8 completed
Start
Module 2

Add Rows

Register people in a sign-up list, one at a time and in batches.

0 of 8 completed
Start
Module 3

Read Columns and Rows

Choose columns and headings, then find unique values in a roster.

0 of 8 completed
Start
Module 4

Filter with WHERE

Find one person, a group of people, or a list with no matches.

0 of 8 completed
Start

Part 2

Find and Change Data

Filter and sort a deployment log, then preview the rows you want to update or delete.

Beginner · 4 modules

Module 5

Combine Conditions

Use AND, OR and IN to pick deployments for a shift handover.

0 of 8 completed
Start
Module 6

Sort and Limit Results

Filter a deployment log, put matches in order, and return just the rows a report needs.

0 of 8 completed
Start
Module 7

Handle NULL

Find missing and recorded values, then sort and limit the runs that need a follow-up.

0 of 8 completed
Start
Module 8

Preview, Update and Delete

Preview the matching deployments with SELECT, then reuse the condition to update or delete those rows.

0 of 8 completed
Start

Part 3

Define keys in a service registry and join it to the deployment log.

Beginner to intermediate · 4 modules

Module 10

Primary and Foreign Keys

Give services and deployments their own IDs and link each deployment to a service.

0 of 8 completed
Start

Part 4

Summarize and Analyze

Use the deployment log to measure activity and compare services.

Intermediate · 4 modules

Module 15

Filter Groups with HAVING

Filter individual deployments and keep the groups that meet a threshold.

0 of 8 completed
Start
Module 16

Dates and Time Intervals

Choose time windows, compare daily and weekly activity, and find repeated failures during a release week.

0 of 8 completed
Start