List:General Discussion« Previous MessageNext Message »
From:Andy Hall Date:September 8 2003 2:54pm
Subject:Re: SubQueries and IN
View as plain text  
> >
> You need to get the conditions for the LEFT JOIN out of the WHERE clause:
>
> SELECT product_id, name, description, sales.sale_id
>   FROM products
>   LEFT JOIN sales ON
>     products.product_id = sales.product_id WHERE
>     sales.sale_id IS NULL AND
>     sales.customer_id = 10

>

I lied in my last email - this did do the trick!

I was not aware that you could stick multiple clauses for the "ON" section.
It all makes sense now!

Thanks again

Andy.

Thread
SubQueries and INAndy Hall8 Sep
  • Re: SubQueries and INSebastian Tobias Mendel genannt Mendelsohn8 Sep
  • Re: SubQueries and INChris Boget8 Sep
  • Re: SubQueries and INRoger Baklund8 Sep
    • Re: SubQueries and INAndy Hall8 Sep
  • Re: SubQueries and INEgor Egorov8 Sep
    • Re: SubQueries and INSebastian Tobias Mendel genannt Mendelsohn8 Sep
      • Re: SubQueries and INEgor Egorov8 Sep
RE: SubQueries and INAdam Fortuno8 Sep
  • Re: SubQueries and INAndy Hall8 Sep