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

Home -> Community -> Usenet -> c.d.o.tools -> select stmt with long list of comparisons ....howto

select stmt with long list of comparisons ....howto

From: kilidire <cr389_at_torfree.net>
Date: Sat, 14 Apr 2001 05:04:57 GMT
Message-ID: <gbmfdtg0tso12cov2754javv6umb326t2p@4ax.com>

Hi,
I have a very basic question that I would like resolvein in a more efficient way.

select * from table1 where title = 'director' or title = 'officer' or title='chairman' .....

Is there a more efficient way to do that if I have a long list of comaparisons to do in a select statement. Something like :
select * from table1 where title IN
('director','officer','chairman','accountant');

Thanks all for the help. Received on Sat Apr 14 2001 - 00:04:57 CDT

Original text of this message

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