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 -> MINUS or a Nested Select

MINUS or a Nested Select

From: Thiko! <biwombi_at_hotmail.com>
Date: 2 Feb 2005 07:17:56 -0800
Message-ID: <1107357476.213517.228920@l41g2000cwc.googlegroups.com>


Hi

How comes this works:

SELECT COUNT(IndexID) FROM [Table1]
MINUS
SELECT COUNT(IndexID) FROM [Table2];

But this doesnt:

SELECT COUNT(IndexID) FROM [Table1]
WHERE IndexID NOT IN (SELECT IndexID FROM [Table2]);

I would have thought that they do the same thing?? Many thanks

Thiko! Received on Wed Feb 02 2005 - 09:17:56 CST

Original text of this message

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