SQL for Data Analysis: Query, Join and Summarise Real Business Data

Learn SQL from zero and answer real business questions: filter, calculate, group, join tables, use window functions and build a sales report.

Beginner 1 Students enrolled English
Created by Learnment Academy
Last updated 27 Nov 2026
+ View more
Course overview

A practical SQL course for analysts, managers, marketers, finance and operations staff, and anyone who is tired of waiting for someone else to pull the numbers. No technical background is needed.

You work on one realistic database all through the course: Willow Home, an online homeware shop with 150 customers in 12 countries, 30 products and a full year of orders. You learn to select and filter data, calculate, summarise with GROUP BY, join tables, find what is missing, write subqueries and CTEs, use window functions for rankings, running totals and growth, and change data safely.

Every example runs in your browser with one click, so there is nothing to install. You can also download the database and use it with free tools. Each section has a narrated video and a test, and you finish with a complete sales report, a final exam and a certificate.

What you will learn?

  • Explain how a relational database is organised: tables, rows, columns and keys
  • Select, sort and filter data with SELECT, WHERE, ORDER BY and LIMIT
  • Calculate with numbers, text and dates, and create categories with CASE
  • Summarise data with COUNT, SUM, AVG, GROUP BY and HAVING
  • Combine tables with INNER JOIN and LEFT JOIN, and avoid double counting
  • Write subqueries and CTEs to answer questions step by step
  • Use window functions for rankings, running totals and month-on-month growth
  • Create tables and views, and change data safely with transactions
  • Build a sales report with KPIs, trends and data quality checks
Requirements
  • No SQL or programming background needed
  • A computer with a modern web browser
  • Basic comfort with tables, for example in Excel or Google Sheets
Curriculum for this course
26 Lessons 05:07:19 Hours
Databases and your first queries
5 Lessons 00:54:54 Hours
  • Databases and your first queries (video)
    Preview 00:00:54
  • What SQL is and how a database is organised
    Preview 00:14:00
  • SELECT: choosing columns, sorting and limiting
    00:14:00
  • Filtering rows with WHERE
    00:16:00
  • Test: databases and your first queries
    00:10:00
Calculating and summarising
5 Lessons 00:56:43 Hours
  • Calculating and summarising (video)
    00:00:43
  • Calculations, text, dates and CASE
    00:16:00
  • Aggregate functions: COUNT, SUM, AVG, MIN, MAX
    00:14:00
  • GROUP BY and HAVING
    00:16:00
  • Test: calculating and summarising
    00:10:00
Combining tables with joins
5 Lessons 00:54:40 Hours
  • Combining tables with joins (video)
    00:00:40
  • Joining tables with INNER JOIN
    00:16:00
  • LEFT JOIN: finding what is missing
    00:14:00
  • Join traps and stacking results with UNION
    00:14:00
  • Test: combining tables with joins
    00:10:00
Advanced analysis
5 Lessons 01:00:35 Hours
  • Advanced analysis (video)
    00:00:35
  • Subqueries and CTEs (WITH)
    00:16:00
  • Window functions: rankings, running totals and growth
    00:18:00
  • Creating and changing data safely
    00:14:00
  • Test: advanced analysis
    00:12:00
Final project: the 2025 sales report
6 Lessons 01:20:27 Hours
  • Final project: the 2025 sales report (video)
    00:00:27
  • Project, part 1: revenue, products and trends
    00:25:00
  • Project, part 2: customers, returns and data checks
    00:25:00
  • Course workbook (PDF)
    .
  • Cheat sheet: SQL for data analysis (PDF)
    .
  • Final exam: SQL for Data Analysis
    00:30:00

Frequently asked question

Which database system does the course use?
SQLite, a free database that runs in your browser and on any computer. About 90% of what you learn works the same in MySQL, PostgreSQL, SQL Server and others; the lessons point out the few differences (mainly date functions).
Do I need to install anything?
No. Every example has a Run button and runs in your browser. If you prefer, you can download the database and open it with the free DB Browser for SQLite.
Is the data real?
No. Willow Home and its customers are invented, and the data was generated for practice. It includes the usual problems of real data on purpose: missing values, a product never sold, customers who never ordered.
How do I get the certificate?
Finish every lesson and pass the section tests and the final exam with an average of at least 70%. You can retake each test up to 3 times; your best score counts.
+ View more
Other related courses
About instructor

Learnment Academy

0 Reviews | 2 Students | 47 Courses
$109
Includes:
  • About 5 h 7 min of videos, lessons and exercises
  • 19 narrated videos with subtitles
  • 5 tests with grades (3 attempts each)
  • 2 downloadable documents
  • 26 Lessons
  • Access on mobile and tv
  • Full lifetime access
  • Certificate when you pass
  • Compare this course with other