Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Nov 16, 1999

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date