SQL for Data Analysis
This course teaches SQL (Structured Query Language) from the ground up, specifically for the purpose of analyzing data stored in relational databases. You will learn how relational databases are organized into tables, how to write queries that select, filter, and sort data, and how to combine information across multiple related tables using joins. You will also learn to summarize data with aggregate functions and GROUP BY, and to write more advanced queries using subqueries and window functions. The course works through realistic examples from retail and marketing databases so every clause you learn is tied to an actual business question. By the end of the course you will be able to write SQL queries confidently to answer real analytical questions directly against a live database, a skill required in nearly every data analyst and data scientist role.
Course content (3 modules, 9 lessons)
SQL Basics: Querying a Single Table
- How Relational Databases Are Organized
- SELECT, WHERE, and ORDER BY
- Aggregate Functions and GROUP BY
Combining and Transforming Data with SQL
- JOINs: Combining Multiple Tables
- Subqueries and Common Table Expressions
- Window Functions for Running Totals and Rankings
Writing Real-World Analytical Queries
- Case Study: Building a Monthly Sales Report in SQL
- Writing Readable, Maintainable SQL
- Performance Basics: Writing Queries That Scale