MySQL Forums
Forum List  »  Optimizer & Parser

Re: Problem with LEF OUTER JOIN
Posted by: KimSeong Loh
Date: March 22, 2006 07:06PM

You add the condition V.UserID=1, all the non matching rows has the value of V.UserID set to NULL, so these rows will NOT match your V.UserID=1 conditon and got removed from the result.
Maybe you want to use (V.UserID=1 OR V.UserID is null)

Options: ReplyQuote


Subject
Views
Written By
Posted
3256
March 19, 2006 04:01PM
1851
March 19, 2006 05:48PM
2454
March 20, 2006 04:04AM
2233
March 20, 2006 10:31AM
2028
March 20, 2006 03:02PM
1876
March 20, 2006 03:34PM
1951
March 21, 2006 06:35PM
1938
March 22, 2006 05:10PM
Re: Problem with LEF OUTER JOIN
1977
March 22, 2006 07:06PM
2113
March 24, 2006 02:01PM
2161
March 26, 2006 08:05PM
2152
March 26, 2006 11:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.