Database management systems notes

Joins

Every kind of join, what each one does to unmatched rows, and the mistakes that quietly change your answer. Every section is a drawn page beside a clear written explanation, about 22 minutes in all.

  • Chapter 9 of 34
  • About 22 minutes
  • 8 sections

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

The first drawn page of Joins: INNER JOIN: matched rows only
The chapter's first page: INNER JOIN: matched rows only

In this chapter

  • INNER JOIN: matched rows only
  • LEFT JOIN: keep everything on the left
  • FULL OUTER and CROSS joins
  • ON, USING and NATURAL
  • Self joins
  • The trap: a WHERE clause that undoes your outer join
  • The trap: row multiplication and inflated sums
  • Reading a join before you trust it

Next chapters

Read the whole chapter

Sign in and the chapter opens with every drawn page, and all 35 database management systems chapters beside it.

DSA comes with the all labs plan and every ChaiCode batch.