Lesson 13.3 · Pro

Writing SQL other people can read

A simple house style: one step per CTE, clear names, and a layout that's easy to check.

In this lesson

  1. One step per CTE, named for what it holds
  2. Prefer CTEs to nested subqueries
  3. Small habits that help