courses / sql

learn sql

Three levels, from never written code to writing it like a professional. Ask questions of databases.

write sql like a professional.

For people who build things on their own and want code that others trust and can change.

1 unit 1 Queries in steps Break big questions into named steps and combine whole results. 0 of 4 · 45 min
  1. Name a step with WITH11 min
  2. Steps that build on steps12 min
  3. Stack results with UNION11 min
  4. Compare two lists11 min
2 unit 2 Window functions Rank, number and compare rows without losing any of them. 0 of 4 · 46 min
  1. A window keeps every row11 min
  2. Number the rows12 min
  3. Ties and podiums11 min
  4. A window for each group12 min
3 unit 3 Windows over time Track totals, changes and trends as the days go by. 0 of 4 · 48 min
  1. Running totals11 min
  2. Looking back and ahead12 min
  3. Moving windows12 min
  4. The best in every group13 min
4 unit 4 Recursion and views Make rows from nothing, walk family trees and save queries for later. 0 of 4 · 49 min
  1. Counting with recursion12 min
  2. Filling the gaps13 min
  3. Walking a tree13 min
  4. Save a query as a view11 min
5 unit 5 Change data safely Group changes so they all happen or none do, and merge new data cleanly. 0 of 4 · 46 min
  1. All or nothing12 min
  2. Changing your mind10 min
  3. Checkpoints inside a transaction12 min
  4. Insert or update12 min
6 unit 6 Let the database do the work Get receipts for changes, react to them automatically and find rows fast. 0 of 4 · 48 min
  1. See what changed10 min
  2. Triggers that react13 min
  3. Triggers that guard13 min
  4. Indexes and query plans12 min
7 unit 7 Speed, JSON and shipping Shape indexes to fit your queries, read JSON data and ship a report you trust. 0 of 4 · 52 min
  1. Indexes that fit the query13 min
  2. Reading JSON12 min
  3. Unpacking and building JSON13 min
  4. Shipping a report14 min
end of level 3 level check Build one small project with everything from this level. Pass it and your face levels up. see the check