by jelder · 9mo ago · 0 comments
from events -- table is first, which enables autocomplete
select
count(), -- * is implied, easier to type
customer_id, -- trailing commas allowed everywhere
group by all -- automatically groups by all non-aggregate columns
order by all -- orders rows by all columns in selected order
https://duckdb.org/docs/stable/sql/dialect/friendly_sql