SQL for data analysts

46 levels in 8 chapters

Learn SQL the way analysts use it: real tickets from colleagues, answered with queries on a full store database, right in your browser.

By the end you can filter, join, group and rank a real company database, and write the CTEs and window functions interviewers ask about. Every level is open; the path only suggests an order.

Chapter 1 · 5 levels

SELECT basics

5 lanterns to light

Chapter 2 · 6 levels

Filtering rows

6 lanterns to light

Chapter 3 · 5 levels

Sorting and limits

5 lanterns to light

Chapter 4 · 6 levels

Aggregates and GROUP BY

6 lanterns to light

Chapter 5 · 6 levels

JOINs

6 lanterns to light

Chapter 6 · 6 levels

CASE, dates and strings

6 lanterns to light

Chapter 7 · 6 levels

Subqueries and CTEs

6 lanterns to light

Chapter 8 · 6 levels

Window functions

6 lanterns to light

Jessica Turner · Merchandising Manager

"Welcome aboard! Before we get into anything fancy, could you pull up the whole product catalog so you can see what we sell?"

Light the next lantern