In a attempt to get out of my not-blogging rut, I wrote a little SQL Tips and Tricks post, focusing on some "friendly" additions to the query syntax that DuckDB has introduced over the last few years and Snowflake has adopted as well.

I cover the following keywords.

  1. group by all
  2. terminal commas (this is not a keyword)
  3. count_if
  4. sample
  5. values

So that I could use interactive queries, I wrote it as an Observable Notebook, the fantastic Javascript focused live coding platform where DuckDB comes standard. In addition to the I've smuggled in a few opinions about SQL style. Check it out.