
01 / Validate the source
Audit a CSV with DuckDB Before You Trust the Dashboard
Find duplicate IDs, invalid dates, broken amounts, and missing customers before you build a chart.
The SQL field guide
Three practical SQL lessons for the moment before you trust a number. Run the example, inspect the failure, and keep the check.
Free examples · Fictional data · No signup

01 / Validate the source
Find duplicate IDs, invalid dates, broken amounts, and missing customers before you build a chart.

02 / Check the grain
Reproduce a join that inflates revenue, then reconcile the result at one row per order.

03 / Define the denominator
Count retained users once and separate a completed month with no activity from a month that has not finished.
Extract the ZIP and open a terminal in the synehq-sql-field-guide folder. Each lesson runs in a fresh local DuckDB session. The CSV lesson reads the included sample file; the other scripts include their data. The setup notes cover installation, and the walkthroughs explain the expected results and where the examples stop.
duckdb < csv-audit.sql
duckdb < join-fanout.sql
duckdb < cohort-retention.sqlPut the checks to work
A practical review of definitions, grain, missing values, joins, denominators, and time windows. Keep the evidence beside your query with a reusable Markdown template.
Explore how SyneHQ keeps questions, queries, results, and review together when a useful check becomes a shared workflow.