This is a free preview. Enrol on the course to save your progress and open every lesson.

Lesson 1 of 24 · 20 min

What data analysts do with SQL

Welcome to Harbour & Home

You've just started as a junior data analyst at Harbour & Home, an online store selling bedding, kitchenware, lighting and other homewares across Australia. It's January 2026, and the managers want to understand last year. Every few days someone will ask you a question:

  • "How many orders did we get last year, and how much did we sell?"
  • "Which products are returned most — and why?"
  • "Which marketing channels bring in our best customers?"
  • "Sales dropped in May. What happened?"

The answers are all in the store's database. Your tool for asking it questions is SQL (Structured Query Language — say "S-Q-L" or "sequel", both are fine).

What is a database?

A database stores information in tables, like spreadsheets with strict rules. Each table holds one kind of thing; each row is one of those things, and each column is one fact about it. Harbour & Home has six tables:

TableOne row is…Rows
customersa person who signed up1,512
ordersone order (when, who, status, discount)4,633
order_itemsone product in one order (quantity, price paid)8,109
productsone product the store sells43
returnsone product sent back407
channelsa marketing channel (paid search, email…)6

Tables are linked by IDs: an order has a customer_id that matches a row in customers. That's what makes a database more powerful than a pile of spreadsheets — and it's what Module 4 is about.

Why SQL?

  • It handles big data. Spreadsheets struggle past a few hundred thousand rows; databases hold billions
  • It's repeatable. A query is a recipe. Run it again next month and you get next month's answer
  • It's everywhere. The same SQL works (with small differences) in SQLite, PostgreSQL, MySQL, SQL Server, Snowflake and BigQuery
  • Employers ask for it. It's in most data analyst job ads, usually alongside Excel and a chart tool like Power BI or Tableau

Your tools

Everything in this course runs in the free SQL Playground — a real SQLite database in your browser, already loaded with Harbour & Home's data. Every query in the lessons has a Try it in the playground link that opens it ready to run.

Prefer your own computer? Download the data from this lesson: harbour_home.sqlite opens in the free DB Browser for SQLite, and the CSV files open in Excel or Google Sheets.

Harbour & Home is made up — every customer, email address and order was generated for this course. But the patterns in it are the kind analysts find in real stores every day.

Try it

  1. Open the playground and press ▶ Run on the starter query.
  2. Open the Tables list on the left and click a table to see its columns.

Downloads

1 file to download once you enrol.