Re: Unexpected behaviour: SELECT with OR returns empty set

2004-07-07 Thread SGreen
| | Fax to: | | Subject: Unexpected behaviour: SELECT with OR returns empty set | >---

Re: Unexpected behaviour: SELECT with OR returns empty set

2004-07-02 Thread gerald_clark
I am not sure what you are trying to do. Do you want a join, or a union. Your query is neither, and the results are correct as written. Dave Gibson wrote: Hi, I'm getting some unexpected behaviour from a query and was hoping someone could shed some light on whether it's a user error or something el

Unexpected behaviour: SELECT with OR returns empty set

2004-07-02 Thread Dave Gibson
Hi, I'm getting some unexpected behaviour from a query and was hoping someone could shed some light on whether it's a user error or something else. I have two tables: customers, oems which both have a companyID field (marked as a foreign key). When I do: SELECT * FROM customers WHERE customers.c