#PostgreSQL

2 posts
Development

The Query That Made Me Stop Writing Self-Joins

The query was four hundred lines long. It had three nested subqueries, two of which selected from the same table with slightly different date filters, and a self-join that existed purely so one row co...

2026.09.16 · 13 min read · views 749
The Query That Made Me Stop Writing Self-Joins
Development

The JOIN That Quietly Dropped Half Your Data

You wrote a query to list your customers and their orders. It ran fine — but half your customers vanished from the results. The ones who never placed an order simply weren't there. Nothing errored, no...

2026.08.12 · 15 min read · views 2,284
The JOIN That Quietly Dropped Half Your Data
AD