Lesson 1.1

SELECT and joins

Joins combine rows across tables, and the join type decides what happens to the rows with no match. Most wrong result sets are a join type mistake.

Duration
5m
Level
Intermediate
Students
12k students

Overview

Joins combine rows across tables, and the join type decides what happens to the rows with no match. Most wrong result sets are a join type mistake.

In this lesson you will:

  • Choose between inner, left, right, and full joins
  • Join on the right keys and avoid accidental fan-out
  • Filter in WHERE versus in the join condition

Resources

PostgreSQL documentation

The official reference for the tools used in this lesson.