Re: Outer joins in MS SQL 2005: why is it this way? better yet, any resources on these nuances?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Plamen Ratchev

    Re: Outer joins in MS SQL 2005: why is it this way? better yet, any resources on these nuances?

    This is the way OUTER JOIN works. Adding the condition in the WHERE clause
    effectively turns the OUTER JOIN to INNER JOIN. Keeping all conditions in
    the JOIN clause preserves the outer rows. Since the outer rows have NULL
    value for the attribute adding a filter in WHERE removes all outer rows.

    HTH,

    Plamen Ratchev


Working...