12 tasks · 47 snippets
SQL cheat sheet
Every query runs on DuckDB against the store tables.
Look at a table, pick columns · Filter rows · Handle missing values (NULL) · Sort, top N, pages · Group and count · Conditions · Join two tables · Dates · Clean text, find duplicates · Subqueries and CTEs · Window functions · Common business metrics
Open the SQL sheet