Skip to content
syneHQ

The SQL field guide

Better answers start with better checks.

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 source02 / Check the grain03 / Define the denominator

A small, reproducible place to start.

Each lesson runs in a fresh local DuckDB session. The CSV lesson needs its sample file in the same folder; the other scripts include their data. The walkthroughs explain the expected results and where the examples stop.

duckdb < csv-audit.sql
duckdb < join-fanout.sql
duckdb < cohort-retention.sql

Make the analysis useful to the next person.

Explore how SyneHQ keeps questions, queries, results, and review together when a useful check becomes a shared workflow.