| 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 IN | Andy Hall | 8 Sep |
| • Re: SubQueries and IN | Sebastian Tobias Mendel genannt Mendelsohn | 8 Sep |
| • Re: SubQueries and IN | Chris Boget | 8 Sep |
| • Re: SubQueries and IN | Roger Baklund | 8 Sep |
| • Re: SubQueries and IN | Andy Hall | 8 Sep |
| • Re: SubQueries and IN | Egor Egorov | 8 Sep |
| • Re: SubQueries and IN | Sebastian Tobias Mendel genannt Mendelsohn | 8 Sep |
| • Re: SubQueries and IN | Egor Egorov | 8 Sep |
| • RE: SubQueries and IN | Adam Fortuno | 8 Sep |
| • Re: SubQueries and IN | Andy Hall | 8 Sep |
