#data

1 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
AD