devxlogo

ANSI Join vs. WHERE Clause Join

ANSI Join vs. WHERE Clause Join

Question:
Is there a technical or logical difference between using an ANSI style join and specifying the join using the WHERE clause? Is there a general preference to either method, or is it solely dependent on your shop’s standards?

Answer:
No, there is good reason to adopt the new convention. The new syntax separates the join (ON) from the WHERE clause. Apart from taking a little getting used to, this lets you express outer joins that heretofore produced incorrect results! Go with the ANSI standard and lose the old habits.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist