>Jim Wright wrote:
>
>Move the user_id condition up into the join....
>

So obvious now that I see it. I'm not very experienced with SQL and was being a 
little too rigid in interpreting the rules... MySQL_5 doc's state:

"You should generally not have any conditions in the ON part that are used to 
restrict which rows you want in the result set, but rather specify these 
conditions in the WHERE clause. There are exceptions to this rule."

I should have payed more attention to the last sentence...

Thanks Jim!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2801
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6

Reply via email to