← All coursesCoding & software

SQL for Data Analysts: Answer Business Questions with Data

Learn SQL the way data analysts use it: filter, summarise, join and clean a store's sales data, then solve a real business mystery — all in a free SQL playground in your browser.

Beginner · 24 lessons · 8 h 35 min · Certificate on completion · With Avro Academy Team

The skill behind every data job

Data analysts spend their days answering questions like "Which products sell best?", "Where do our customers come from?" and "Why did sales drop last month?". The answers are sitting in a database — and SQL is how you ask for them. It's the most requested skill in data analyst job ads, and it works the same way in almost every company.

In this course you'll join Harbour & Home, a made-up Australian online homewares store, and work with a full year of its data: 1,512 customers, 4,633 orders and over a million dollars of sales. Then you'll use it to crack a real case: why did sales drop in May?

Practise right in your browser

Every lesson links to the free Avro Academy SQL Playground — a real SQLite database that runs in your browser. Nothing to install, no account needed, and your queries are saved on your device (export them any time). It also has 26 practice exercises that check your answers.

What you'll learn

  • SELECT, filtering with WHERE, and sorting
  • Summarising with COUNT, SUM, AVG, GROUP BY, HAVING and CASE
  • Joining tables — and avoiding the join mistake that double-counts revenue
  • Dates, subqueries, CTEs (WITH) and window functions (rankings, running totals, month-on-month change)
  • Finding and fixing messy data: duplicates, missing values, inconsistent spelling
  • Turning results into a chart and a clear answer — and how SQL differs between SQLite, PostgreSQL, MySQL, SQL Server and BigQuery

Who it's for

Complete beginners to SQL — and anyone heading towards data analyst, business analyst, reporting or marketing analytics roles. You don't need to know any programming.

How it works

  • 6 modules, 18 lessons, about 8 hours including quizzes
  • Every query and result in the lessons was run on the real data
  • The dataset to download (SQLite and CSV), a cheat sheet and a certificate

Harbour & Home and all its customers are made up.

Free forever — like every self-paced course on Avro Academy: all lessons, quizzes, downloads and your certificate. Our promise

Course outline

  1. Module 1: Meet the data

    What analysts do with SQL, the Harbour & Home database, SELECT, calculated columns and aliases.

    • What data analysts do with SQLFree preview20 min
    • Your first queries: SELECT and FROM25 min
    • Calculated columns and aliases25 min
    • Module 1 quiz5 min
  2. Module 2: Filter and sort

    WHERE, AND/OR, IN, BETWEEN, LIKE, NULL and ORDER BY.

    • Filtering rows with WHERE30 min
    • Patterns and missing values: LIKE and NULL25 min
    • Sorting results with ORDER BY20 min
    • Module 2 quiz5 min
  3. Module 3: Summarise

    COUNT, SUM, AVG, GROUP BY, HAVING and CASE.

    • Counting and adding up: aggregate functions25 min
    • Grouping with GROUP BY and HAVING30 min
    • Sorting values into groups with CASE25 min
    • Module 3 quiz5 min
  4. Module 4: Join tables

    INNER and LEFT joins, table aliases, and avoiding double-counting.

    • Joining tables: INNER JOIN30 min
    • LEFT JOIN: keeping rows with no match25 min
    • The join mistake that double-counts25 min
    • Module 4 quiz5 min
  5. Module 5: The analyst toolkit

    Dates, subqueries, CTEs and window functions.

    • Working with dates25 min
    • Subqueries and CTEs30 min
    • Window functions: rankings and running totals35 min
    • Module 5 quiz5 min
  6. Module 6: Clean data and tell the story

    Data-quality checks, a real investigation, sharing results and SQL in other databases.

    • Finding and fixing messy data30 min
    • Case study: why did sales drop in May?35 min
    • Sharing results, other databases and next steps25 min
    • Module 6 and final quiz5 min