An open API service indexing awesome lists of open source software.

https://github.com/krauseannelize/nb-sql-ms-exercises

My SQL practice notes and query examples from the Masterschool curriculum
https://github.com/krauseannelize/nb-sql-ms-exercises

jupyter-notebook learning-by-doing learning-sql practice-sql sql

Last synced: 4 months ago
JSON representation

My SQL practice notes and query examples from the Masterschool curriculum

Awesome Lists containing this project

README

          

# SQL Notes | Masterschool Exercises

## About This Repo

This is my personal SQL learning journal from the Masterschool Data Analytics program. It includes hands-on exercises, challenges, and practice notebooks organized by sprint. Each notebook reflects a different stage in my learning journey—from basic queries to advanced data manipulation.

## Basic & Intermediate SQL

### Sprint 1: SQL Fundamentals

Learn the basics of SQL, including query structure and filtering data. Understand how to apply conditions and multiple filters to refine queries.

| Notebook | Type | Topic | Dataset(s) |
| --- | --- | --- | --- |
| [Notebook 01](/notebooks/01_introduction_to_sql.ipynb) | Lecture | Introduction to SQL | Chinook |
| [Notebook 02](/notebooks/02_practice_british_airways.ipynb) | Lecture | SQL Practice | British Airways |
| [Notebook 03](/notebooks/03_challenge_british_airways_1.ipynb) | Challenge | British Airways I | British Airways |

### Sprint 2: Aggregations & Custom Data Manipulation

Work with aggregations to summarize data effectively. Learn how to create custom columns and apply sorting techniques.

| Notebook | Type | Topic | Dataset(s) |
| --- | --- | --- | --- |
| [Notebook 04](/notebooks/04_practice_chinook.ipynb) | Lecture | SQL Practice | Chinook |
| [Notebook 05](/notebooks/05_aggregation.ipynb) | Lecture | Aggregation | Chinook |
| [Notebook 06](/notebooks/06_group_by.ipynb) | Lecture | Group by | Chinook |
| [Notebook 07](/notebooks/07_intro_to_joins.ipynb) | Lecture | Intro to JOINS | Chinook |
| [Notebook 08](/notebooks/08_challenge_meta_revenue_1.ipynb) | Challenge | Meta Revenue I | Meta Revenue |
| [Notebook 09](/notebooks/09_challenge_meta_revenue_2.ipynb) | Challenge | Meta Revenue II | Meta Revenue |
| [Notebook 10](/notebooks/10_challenge_british_airways_2.ipynb) | Challenge | British Airways II | British Airways |

### Sprint 3: Working with Multiple Tables

Master JOIN operations to combine columns from different tables. Use UNION operations to merge datasets.

| Notebook | Type | Topic | Dataset(s) |
| --- | --- | --- | --- |
| [Notebook 11](/notebooks/11_joins_closer_look.ipynb) | Lecture | JOINS: A Closer Look | Chinook |
| [Notebook 12](/notebooks/12_unions_except_intersect.ipynb) | Lecture | UNION, EXCEPT & INTERSECT | Chinook |
| [Notebook 13](/notebooks/13_practice_chinook.ipynb) | Lecture | SQL Practice | Chinook |
| [Notebook 14](/notebooks/14_business_case_nike.ipynb) | Lecture | Business Cases | Nike |
| [Notebook 15](/notebooks/15_challenge_nike_1.ipynb) | Challenge | Nike I | Nike |
| [Notebook 16](/notebooks/16_challenge_nike_2.ipynb) | Challenge | Nike II | Nike |

### Sprint 4: Unicorn Project & Practice Exercises

Sprint 4 centers around the Unicorn Project, a multi-part case study that integrates SQL, spreadsheets, and Tableau to simulate real-world data analytics work. The full Unicorn Project is documented in a separate repository: [Unicorn Performance Analysis](https://github.com/krauseannelize/da-ms-unicorn-performance).

This sprint also includes targeted practice notebooks focused on core SQL concepts.

| Notebook | Type | Topic | Dataset(s) |
| --- | --- | --- | --- |
| [Notebook 17](/notebooks/17_challenge_british_airways_3.ipynb) | Challenge | British Airways III | British Airways |
| [Notebook 18](/notebooks/18_challenge_meta_revenue_3.ipynb) | Challenge | Meta Revenue III | Meta Revenue |
| [Notebook 19](/notebooks/19_challenge_nike_3.ipynb) | Challenge | Nike III | Nike |

## Advanced SQL

## Sprint 1: Multi-Table Queries & Joins

Work with multiple joins to extract and combine information from different sources. Develop strategies for structuring complex queries effectively.

| Notebook | Type | Topic | Dataset(s) |
| --- | --- | --- | --- |
| [Notebook 20](/notebooks/20_multiple_joins.ipynb) | Lecture | Multiple Joins | Advanced British Airways |
| [Notebook 21](/notebooks/21_left_joins_missing_keys.ipynb) | Lecture | Left Join & Missing Keys | Advanced British Airways |
| [Notebook 22](/notebooks/22_subqueries.ipynb) | Lecture | Subqueries | Advanced British Airways |
| [Notebook 23](/notebooks/23_practice_chinook.ipynb) | Lecture | SQL Practice | Chinook |
| [Notebook 24](/notebooks/24_exercises_multi_joins.ipynb) | Exercises | Multi Joins in Actions | Advanced British Airways |
| [Notebook 25](/notebooks/25_challenge_advanced_british_airways_1.ipynb) | Challenge | British Airways I | Advanced British Airways |
| [Notebook 26](/notebooks/26_challenge_advanced_british_airways_2.ipynb) | Challenge | British Airways II | Advanced British Airways |

## Sprint 2: Data Cleaning & Advanced Querying

Handle messy text data, date manipulation, and numerical transformations. Learn how to use WITH statements and subqueries for better query organization.

| Notebook | Type | Topic | Dataset(s) |
| --- | --- | --- | --- |
| tbd | tbd | tbd | tbd |