Week 9 - SQL for Analytics

SQL for Analytics

Joins, CTEs, and Aggregations

Data Validation Queries

OLAP, OLTP & Warehouses

Data Modeling Concepts

Building SQL Views

Practice

Assignment

Gotchas & Pitfalls

Glossary

Career: SQL for Analytics

Going Further

Slides (PDF)

Slides (PDF)

The slide deck used in the Week 9 in-class kickoff session. The deck covers: welcome back + recap, the theme ("From moving data to making sense of it"), the chapter-by-chapter tour (Ch1-Ch6), three live exercises from the practice repository, one consolidated live quiz round, career relevance, and the closing hand-written reflection.

<aside> 💡 Use this as a recap. If you missed class or want to re-walk the agenda, the deck mirrors the structure of the lesson: same section numbers, same order. Especially useful for the assignment-launch walk-through (§9) when you start the assignment at home.

</aside>

Download

week_9__presentation.pdf

week_9__presentation.pdf

What's in it

The slides are deliberately student-facing only. The teacher's per-section script (pacing, quiz answer cribs, exercise reference solutions, deep-dive default topics, closer rubric) lives in the GitHub-only week_9__lesson_plan.md (visible on GitHub only: not synced to Notion, so no link from this page).

Practice exercises (referenced in the live exercise slides)

Practice exercises live in the HackYourFuture/Learning-Resources/data-track/week-9/ repository.

Section Practice exercise What you practice
§2 Live Exercise 1 Ex2: Trips and average fare per borough INNER JOIN + GROUP BY + CTEs
§3 Live Exercise 2 Ex6: Validate the raw data Null, duplicate, and orphaned-key validation
§6 Live Exercise 3 Ex7: Build views, then query them CREATE VIEW, star schema, and join-validation

Reference solutions live in the solutions/ folder of each exercise.


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.