Quote:
|
Originally Posted by aschk
...Will ALWAYS be true
|
i don't think that's right
it would be, if it had said
Code:
AND (p.`products_id` <> 215 OR p.`products_id` <> 305)
with OR, everything is going to be not equal to one or the other
but with AND, i believe it works as intended
anjanesh, would you mind saying in words what you're trying to do?
if i interpret your first query, it says "delete all products that have a supplier and that aren't 215 or 305"
do you have products without a supplier? and you want to keep those? if so, why?