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 -> Re: SELECT col_a, (SELECT col_b .....

Re: SELECT col_a, (SELECT col_b .....

From: Spencer <spencerp_at_swbell.net>
Date: Sat, 21 Jul 2001 21:28:08 GMT
Message-ID: <EJR07.87$C02.8337@nnrp1.sbc.net>

i've not used that particular construct before, that is, using a select statement in the select list...

i refer to an imbedded select statement as an "inline view", but have only used this construct in the FROM clause of another select...

HTH "Frank" <franjoe_at_frisurf.no> wrote in message news:%ED07.2768$Jp5.46360_at_news1.oke.nextra.no...
> Hi!
> Oracle 8.1.6/Windows2000
>
> I have found that Oracle now handles queries with the form:
> SELECT col_a,
> (SELECT col_b FROM table_b WHERE find only one row)
> FROM table_a a
> WHERE find stuff;
>
> What is this construction called ? (so I can search for it in the
> documentation)
> How does Orcale optimize this ?
> It seems to me that a expression like this could be rewritten to a "old"
> query like:
> SELECT col_a, col_b
> FROM table_a a, table_b
> WHERE a.id=b.id(+);
>
> Is that happening behind the scenery?
>
> Frank
>
>
>
>
>
Received on Sat Jul 21 2001 - 16:28:08 CDT

Original text of this message

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