
Window functions are the thing people look up every single time and still get subtly wrong. This sheet fixes that.
It opens with the syntax anatomy, because once you see that every window function is the same shape, the rest is variation. From there:
Dialect-specific syntax is flagged where it appears, so you won't paste Postgres casts into BigQuery.