Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: help with multiple BETWEEN statements

Re: help with multiple BETWEEN statements

From: Noodles <noodles_at_aol.com>
Date: 12 Jan 2003 23:50:12 GMT
Message-ID: <20030112185012.21504.00000430@mb-fm.aol.com>


I think you mean the following:

         SELECT A  from table1
          where rate = 'abc'
         or     code between '0100' and '0199'
         or     code between '4000' and '4499'
         or     code between '7000' and '7999'
         or     code between '9000' and '9499';

Xho is correct in the fact that you can't stisfy mutually exclusive conditions.

Cliff Received on Sun Jan 12 2003 - 17:50:12 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US