Maxim Mironjuk
-
August 24, 2025
FROM orders o, customers c WHERE o.customer_id = c.id looks at first glance like a harmless shorthand for a join, and syntactically it is exactly that. The implicit comma syntax dates back to before today's common JOIN keyword and still works unchanged in most database systems. The decisive difference from explicit JOIN syntax isn't the result of a correctly written query, it's what happens when a developer makes a mistake: with comma syntax, a forgotten WHERE condition silently turns into a cartesian product, with no error at all. This article explains why that's structurally riskier, where comma syntax still shows up, and why explicit JOIN meaningfully improves readability on complex queries too.