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: WHERE IN query

Re: WHERE IN query

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 23 Apr 1999 18:46:30 +0100
Message-ID: <924889760.7426.0.nnrp-02.9e984b29@news.demon.co.uk>


The 'standard form' should work on 7.3.2;

Is it possible that one of the columns in the subquery returns a null, thus failing every row in the main query ?

By the way - the concatenated form will eliminate some of the transformations
that Oracle could otherwise choose to
optimise your query, so it should be
avoided if possible.

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

Joerg Leute wrote in message <7fp5ru$m08$1_at_news.LF.net>...
>That was it! Since I have Version 7.3.2.2.1 the standard form did not work,
>but yours did.
>
>>
>>As all earlier persons were addressing the fact that it seems you want
both
>>fields to match may I suggest this instead.
>>
>>Select * from Table1 where ID||Name in (select ID2||Name2 from Table2)
>>
Received on Fri Apr 23 1999 - 12:46:30 CDT

Original text of this message

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