All,
Steve Jones, from SQL Server Central, wrote an interesting article on outer joins causing problems for DBAs last year. I just discovered it this morning. It actually explains quite a few things about why you should sometimes put your WHERE clause filters in the ON clause of the JOIN instead of the WHERE clause.
But only on Outer Joins, not Inner.
Anyway, the link is below. You'll need a free registration with SSC.com to read it, but that's not too hard to get. @=)
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
Steve Jones, from SQL Server Central, wrote an interesting article on outer joins causing problems for DBAs last year. I just discovered it this morning. It actually explains quite a few things about why you should sometimes put your WHERE clause filters in the ON clause of the JOIN instead of the WHERE clause.
But only on Outer Joins, not Inner.
Anyway, the link is below. You'll need a free registration with SSC.com to read it, but that's not too hard to get. @=)
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"