SQL for Data Analysis
Ask your company's data anything — from your first SELECT to joins, CTEs and window functions.
What you'll be able to do
- Write SELECT queries that filter, sort and calculate
- Summarise data with COUNT, SUM, AVG, GROUP BY and HAVING
- Combine tables with INNER, LEFT and self joins
- Solve harder questions with CASE, subqueries and CTEs
- Use window functions for rankings and running totals
- Insert, update and delete data safely, and design simple tables
- Move confidently between SQLite, MySQL, PostgreSQL and SQL Server
Course content
7 modules · 26 lessons · 24 lesson quizzes · 35-question final exam · hands-on project
Module 1: Getting started4 lessons · 52 min
Module 2: Filtering and sorting4 lessons · 54 min
- ▶ WHERE: only the rows you needRead free
- 🔒 IN, BETWEEN, LIKE and NULL14 min
- 🔒 ORDER BY and LIMIT: top-N questions12 min
- 🔒 DISTINCT, calculated columns and aliases14 min
Module 3: Summarising data4 lessons · 58 min
- ▶ COUNT, SUM, AVG, MIN and MAXRead free
- 🔒 GROUP BY: totals for every group16 min
- 🔒 HAVING, and the order SQL really runs in14 min
- 🔒 Working with dates14 min
Module 4: Joining tables4 lessons · 62 min
- ▶ INNER JOIN: combine two tablesRead free
- 🔒 Joining three or more tables16 min
- 🔒 LEFT JOIN: keep everything, find what's missing16 min
- 🔒 Self joins and top customers14 min
Module 5: Intermediate analysis4 lessons · 63 min
- ▶ CASE: if-then logic inside a queryRead free
- 🔒 Subqueries: a query inside a query15 min
- 🔒 CTEs: readable step-by-step queries15 min
- 🔒 Window functions: rankings and running totals18 min
Module 6: Changing data and designing tables4 lessons · 57 min
- ▶ INSERT, UPDATE and DELETE — safelyRead free
- 🔒 Designing tables: CREATE TABLE and constraints15 min
- 🔒 Views and indexes13 min
- 🔒 SQLite, MySQL, PostgreSQL and SQL Server14 min
Module 7: Thinking like an analyst2 lessons · 30 min
- ▶ From a business question to an answerRead free
- 🔒 Your project and final exam12 min
About this course
Every serious organisation keeps its data in databases — banks, telcos, fintechs, retailers, hospitals, government agencies. SQL is how you ask that data questions. It's the most requested technical skill in data, finance and operations job adverts, and one of the easiest to start: in your first hour you'll be pulling real answers from a database.
Course outline
- Getting started — what databases and SQL are, installing DB Browser for SQLite, tables and keys, your first SELECT
- Filtering and sorting — WHERE, AND/OR, IN, BETWEEN, LIKE, NULL, ORDER BY, LIMIT, DISTINCT, calculated columns
- Summarising data — COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING, working with dates
- Joining tables — how data is split across tables, INNER JOIN, LEFT JOIN, multi-table joins, self joins
- Beyond the basics — CASE, subqueries, CTEs (WITH) and window functions (RANK, ROW_NUMBER, running totals)
- Changing data and working professionally — INSERT, UPDATE, DELETE, transactions, CREATE TABLE, views, indexes, and SQL in other databases
- Finish line — revision guide, final exam and a real project
How you'll learn
You'll work on PsalmEdu Mart — a realistic retail database with 6 branches across Lagos, Abuja, Port Harcourt, Ibadan and Kano, 400 customers, 30 products, 25 staff and 3,000 orders. Every lesson has queries to run, every module has a solutions file, and the project uses a second database you haven't seen, so your answers prove your skill.
What you need
- A laptop or desktop computer (Windows, Mac or Linux)
- DB Browser for SQLite (free) — installation is covered in lesson 2
- Comfort with basic spreadsheets helps but isn't required
Your certificate
Issued automatically when you finish every lesson, score 70% or more in the final exam and pass the hands-on project (“Answer the CEO's questions with SQL”). Each certificate has a unique ID and a public page employers can check — and you can add it to LinkedIn in one click.
Questions
Do I need to know programming?
No. SQL reads like structured English — SELECT these columns FROM this table WHERE this is true. The course starts from zero.
Which database does the course use?
SQLite, through the free DB Browser for SQLite app, so there's nothing to set up and no server. Everything you learn works in MySQL, PostgreSQL and SQL Server too; lesson 6.4 lists the small differences.
Can I do it on my phone?
You can read on a phone, but you'll need a computer to practise. (A browser tool such as sqliteonline.com works in a pinch, including on a tablet.)
How does it fit with Excel and Power BI?
SQL gets the data out; Excel and Power BI analyse and present it. Together they form the Data Starter bundle.
Is the certificate recognised?
It is a PsalmEduLabs certificate with a unique ID that anyone can verify online, showing your exam and project scores.