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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How do I retrieve free values?

Re: How do I retrieve free values?

From: Lars Reineke <reineke_at_kreiskrankenhaus-hameln.de>
Date: Fri, 23 Aug 2002 12:59:04 +0200
Message-ID: <ak54iq$1g7onr$1@ID-1759.news.dfncis.de>


> Using a table with at least as many rows as the max integer you can use
the
> MINUS operator.

This is exactly what I was looking for. Thank you very much!

This is the query I am using now, and it works absolutely perfect:

select rownum from all_objects where rownum < (select max(nr) from theTable) minus
select nr from theTable Received on Fri Aug 23 2002 - 05:59:04 CDT

Original text of this message

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