Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: help with multiple BETWEEN statements
Yvonne G wrote:
> Thanks for the input; I've tried putting liberal parentheses as per
> the following snippet, to no avail:
>
> AND ADORDER.TYPE = 'C' AND
> ((((RUNINS.CLASS) Between ' 105' And ' 820'))
> OR (((RUNINS.CLASS) Between '4010' And '4320')))
>
> Anyone have additional suggestions?
You certainly did use liberal parens! You should do very well editing
tnsnames.ora files! :)
BTW, what *does* happen to make you say "to no avail"? Error messages? Wrong set of data?
If runins.class is a varchar2, then wouldn't you look for '105' and '820'? If it's a char, you'd look for '105 ' and '820 '. Of course, you could have stored it the way you've indicated, in which case you have another problem. Received on Mon Jan 13 2003 - 12:42:40 CST