From oracle-l-bounce@freelists.org  Mon Oct 10 10:55:42 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j9AFtfNe025158
 for <oracle-l@orafaq.com>; Mon, 10 Oct 2005 10:55:41 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j9AFtZvX025135
 for <oracle-l@orafaq.com>; Mon, 10 Oct 2005 10:55:35 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BDE661FA3C0;
 Mon, 10 Oct 2005 10:55:31 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 00971-10; Mon, 10 Oct 2005 10:55:31 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 370E31FA5A2;
 Mon, 10 Oct 2005 10:55:31 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
        b=hKFRv4gGS4AXoLEh1/5ruzSlVKs5Wkpp7biwoa+h7QBtpfYCF5MFq0D9+aBBhyHFRshAH1/yBLjTWKtq5FVZQ8dtw6Obo2gs7O5T7SEpiIfDumdz1l9FIO0ZXNYAxkc7x+OnARQluP5li9dSpJz/WD6eUJg36BjDfbJNhlsRuqs=
Message-ID: <bf2f74740510100853i1c3ea46as46317662530b86e8@mail.gmail.com>
Date: Mon, 10 Oct 2005 11:53:35 -0400
From: Sandeep Dubey <dubey.sandeep@gmail.com>
To: oracle-l@freelists.org
Subject: SQL help
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis
Content-Disposition: inline
X-archive-position: 26639
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: dubey.sandeep@gmail.com
Precedence: normal
Reply-To: dubey.sandeep@gmail.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-mailscan-MailScanner-Information: Please contact the ISP for more information
X-mailscan-MailScanner: Found to be clean
X-MailScanner-From: oracle-l-bounce@freelists.org
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Level: 
X-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham 
 version=2.63

Hi,

I am having weekend hangover with seemingly simple sql requirement.

create table t(id number);
insert into t values(1);
insert into t values(2);
commit;

I want to query this with an Id set. All values in the set should be
there to return me any row.
e.g.
select * from t where id in (1,2);  return 1 and 2

If am serching for 1,2,3 if any one value is missing I should not get any data.
e.g.
select * from t where id in (1,2,3) should not return any row.
How to rewrite the above query with (1,2,3) that should not return me any row.
Thanks

Sandeep
--
http://www.freelists.org/webpage/oracle-l

