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

SELECT col_a, (SELECT col_b .....

From: Frank <franjoe_at_frisurf.no>
Date: Sat, 21 Jul 2001 21:26:39 GMT
Message-ID: <%ED07.2768$Jp5.46360@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:26:39 CDT

Original text of this message

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