Home / Guides / Self-Hosting & Infra
SQL Join Pitfalls: LEFT JOIN Turned Inner by WHERE, Row Fan-Out, NOT IN with NULL and Anti-Joins
Executed on SQLite 3.37: LEFT JOIN with WHERE versus ON conditions, count(*) versus count(child.id), joined sums inflated by fan-out, NOT IN returning an empty set after a NULL appears, and NOT EXISTS or LEFT JOIN IS NULL as safe anti-joins.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →