I've just noticed this pecularity with mysql 4.1.0 running on windows,
wondered if anyone could explain it / or is it a bug.
I have a table called tokContact, which has a column called id, which
has unique values from 1 up into the thousands with no gaps.
This sql statement :
select id from tokContact where id < 200 and id <> ALL (select id from
tokContact where id > 10 and id < 150)
returns rows 1..10, 150..199 (As expected)
The problem is if I try :
select id from tokContact where id < 200 and id <> ALL (select id from
tokContact where id < 150)
I get an empty result set (why don't I get 150…199)?
Whilst :
select id from tokContact where id < 200 and id <> ALL (select id from
tokContact where id > 150)
works as expected, giving 1..150
Thanks,
Paul