Back to Courses
intermediate15 lessons~3h3,550 XP

SQL Power Queries

Level up with aggregations, joins, and conditional logic — the toolkit of every working data analyst.

0%

0/15 done

Lesson Path Complete each lesson to unlock the next

GROUP BY

GROUP BY
Locked

Split your data into groups and run aggregates on each — like pivot tables in SQL.

Complete Aggregate Functions to unlock

HAVING

HAVING
Locked

Filter groups after aggregation — WHERE's smarter sibling.

Complete GROUP BY to unlock

INNER JOIN

JOIN
Locked

Combine data from two tables by matching on a shared column.

Complete HAVING to unlock

LEFT JOIN

LEFT JOIN
Locked

Include all rows from the left table, even when there's no match on the right.

Complete INNER JOIN to unlock

Multiple JOINs

Multi-table JOIN
Locked

Chain three or more tables together to traverse the full data model.

Complete LEFT JOIN to unlock

CASE Expressions

CASE
Locked

Add if/else logic directly inside your SQL query.

Complete Multiple JOINs to unlock

String Functions

UPPER / LOWER / LENGTH / CONCAT
Locked

Manipulate and transform text data with SQL's built-in string toolkit.

Complete CASE Expressions to unlock

Date & Time

NOW() / DATE_TRUNC / EXTRACT / INTERVAL
Locked

Work with timestamps, extract date parts, and calculate time intervals.

Complete String Functions to unlock

Subqueries

Subquery
Locked

Nest a query inside another — let the inner query's result drive the outer one.

Complete Date & Time to unlock

Subqueries in FROM (Derived Tables)

Derived table
Locked

Treat a subquery's result as if it were its own table, and query it further.

Complete Subqueries to unlock

Self Joins

Self join
Locked

Join a table to itself to compare rows within the same table — like employees to their managers.

Complete Subqueries in FROM (Derived Tables) to unlock

FULL OUTER JOIN

FULL OUTER JOIN
Locked

Keep every row from both tables, matched where possible, NULL where not.

Complete Self Joins to unlock

Set Operations: UNION, INTERSECT, EXCEPT

INTERSECT / EXCEPT
Locked

Combine, find common rows between, or subtract one query's results from another.

Complete FULL OUTER JOIN to unlock

NULL-Safe Aggregates

COALESCE in aggregates
Locked

Make sure missing data doesn't silently break your sums, averages, and counts.

Complete Set Operations: UNION, INTERSECT, EXCEPT to unlock