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

Home -> Community -> Mailing Lists -> Oracle-L -> SQL help needed

SQL help needed

From: Kirtikumar Deshpande <kirtikumar_deshpande_at_yahoo.com>
Date: Tue, 16 Sep 2003 19:29:40 -0800
Message-ID: <F001.005D0150.20030916192940@fatcity.com>


Hello Listers,

I need some SQL help.
Not sure if this is possible in plain SQL or not, but here it is: I have a table with two columns:
EMPNBR LINENBR
------ -------

   100         1
   200         4
   300         8
   400         9
   500        14

How would I find out the missing linenbrs (2,3,5,6,7) if I was given minlinenbr as 1 and maxlinenbr as 10 that would be passed as variables (using &).

Thanks.


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Kirtikumar Deshpande
  INET: kirtikumar_deshpande_at_yahoo.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Sep 16 2003 - 22:29:40 CDT

Original text of this message

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