Dear all,

I have 2 numeric column a,b in my table.
I want to retrieve rows which a in range
x~y, but b not in this range. So I wrote
a SQL statement

select * from <table> where
( a > x and a < y ) and ( b < x or b > y )

But wrong result returned with this
statement. Is this SQL wrong?


Thanks for your help,

Vincent Chen



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to