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: Q: query with OR

Re: Q: query with OR

From: Gerard H. Pille <ghp_at_infosoft.be>
Date: 1997/02/12
Message-ID: <5dthrh$hfs@news2.Belgium.EU.net>#1/1

from oracle 7.2 in sqlplus, and from oracle 7.3 in PL/SQL cursor:

select count(*) from
 (select 'x' from tablename
   where fieldone = 'value1'
  union all
  select 'x' from tablename
   where fieldone = 'value2')
where rownum < 100000;

if less than oracle 7.2, create a view for the subselect. Received on Wed Feb 12 1997 - 00:00:00 CST

Original text of this message

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