Path by goal

SQL learning path for data analysis

Turn business questions into queries that filter, summarise, relate and compare data, with evidence you can check at the end of each block.

A path that keeps the foundations visible

The path has 37 steps, drawn from the 52 shared lessons plus a supplementary project. If you are starting from scratch, follow it in order. If you can already apply a skill, confirm it and move on to the next step: that confirmation is your own statement, not an automatic test.

Approximate time: 9.6 hours of content and practice. Plan sessions of 30–45 minutes and stop between activities; a module may take several sessions. These estimates have not been measured with learners.

Orientation

1What SQL is and what it is forQuerying a table to answer a simple question

Prerequisites: none.

2Understand tables, rows and columnsRecognising rows, columns and cells in a table

Prerequisites: What SQL is and what it is for.

3How to read a SQL queryExplaining what an existing query asks for

Prerequisites: Understand tables, rows and columns.

Selecting data

4Select data with SELECT and FROMChoosing which columns to read and from which table

Prerequisites: How to read a SQL query.

5Choose the order of the columnsPutting the result's columns in the order you need

Prerequisites: Select data with SELECT and FROM.

6Use aliases and create calculated columnsCalculating a column and giving it a clear name

Prerequisites: Choose the order of the columns.

Filtering data

7Filter rows with WHEREShowing only the rows that meet a condition

Prerequisites: Select data with SELECT and FROM.

8Compare values in your filtersChoosing a comparison that includes or excludes the limit

Prerequisites: Filter rows with WHERE.

9Combine conditions with AND, OR and NOTCombining conditions to express several requirements

Prerequisites: Compare values in your filters.

10Filter ranges and lists with BETWEEN and INFilter by a range or list of values

Prerequisites: Combine conditions with AND, OR and NOT.

11Find text patterns with LIKEFinding text that starts with, ends with or matches a pattern

Prerequisites: Filter rows with WHERE.

12Work correctly with NULL valuesFinding missing or present values with IS NULL

Prerequisites: Filter rows with WHERE, Compare values in your filters.

Sorting and summarising

14Sort and limit resultsSorting a list and showing its first rows

Prerequisites: Filter rows with WHERE.

16Create per-group summaries with GROUP BYGetting a separate summary for each group

Prerequisites: Summarise data with COUNT, SUM, AVG, MIN and MAX.

17Filter groups with HAVINGKeeping only the groups that meet a condition

Prerequisites: Create per-group summaries with GROUP BY.

18Practice: combine filters and summariesCombining filters and summaries without confusing what each figure counts

Prerequisites: Filter groups with HAVING.

Relating tables

Advanced queries

25Find matches with EXISTSChecking whether a related row exists for each item

Prerequisites: Answer questions with subqueries, Match rows with INNER JOIN.

29Combine results with UNIONCombining two lists and deciding whether to keep repeats

Prerequisites: Practice: choose between subqueries and CTEs.

30Create categories with CASECreating labels based on each row's conditions

Prerequisites: Combine results with UNION.

31Transform text with functionsChanging how a text is presented, or counting its characters

Prerequisites: Create categories with CASE.

34Number rows with ROW_NUMBERNumbering rows and restarting for each group

Prerequisites: Break queries into steps with CTEs, Sort and limit results.

The path's final project

37Sales analysis and audit projectA report that defines what its rows represent, calculates metrics and explains its limits.

How to check you have finished

A report that defines what its rows represent, calculates metrics and explains its limits.

  • Complete the practice activity for each core skill.
  • Explain one included row, one excluded row and one boundary or missing value.
  • If you need help, keep the correct answer marked as assisted and come back with a different review.

Once you have finished this path, you can combine SQL with Python to analyse and transform the results. PythonDesdeCero offers a supplementary path for getting started with that language.