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 -> sql quiz

sql quiz

From: Naren Chintala <naren_at_att.com>
Date: 1998/01/06
Message-ID: <34B25E5C.235C@att.com>#1/1

Hi,

SQL> describe t1;

 Name                            Null?    Type
 ------------------------------- -------- ----
 C1                                       NUMBER

SQL> select c1 from t1;

        C1


         1
         4
         7
         8
         9
        10

Question:

I need to retrieve the missing numbers (2,3,5,6) from t1. How can I do this in ONE sql statement? I know that this can be done in PL/SQL.

Any ideas?
Thanks
Naren Received on Tue Jan 06 1998 - 00:00:00 CST

Original text of this message

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