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: NOT IN conditions are extremly SLOW

Re: NOT IN conditions are extremly SLOW

From: Robert Wehofer <thalion77_at_graffiti.net>
Date: Thu, 6 Oct 2005 10:22:00 +0200
Message-ID: <5c0d3$4344dea5$d4badae4$31884@news.chello.at>


> SELECT
> COUNT(*)
> FROM
> (SELECT
> COL_A,COL_B
> FROM
> TABLE_A
> MINUS
> SELECT
> COL_A,COL_B
> FROM
> TABLE_B
> )

Your statement is much faster, thank you.

But how do I get all columns of TABLE_A selected?

SELECT * FROM (SELECT COL_A, COL_B FROM TABLE_A MINUS SELECT COL_A, COL_B FROM TABLE_B) only retrieves columns COL_A and COL_B, but I would like to have all columns of TABLE_A

Robert Received on Thu Oct 06 2005 - 03:22:00 CDT

Original text of this message

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