Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL question
Michel Cadot schrieb:
> "Maxim Demenko" <mdemenko_at_arcor.de> a écrit dans le message de news: 43567d18$0$6772$9b4e6d93_at_newsread4.arcor-online.net...
> |
> |
> | > |
> |
> > Thanks for your answer (and for reading a so long thread in T. Kyte forum) > but my question was why is it so? > I know there is this limit of only one level but why? > Is this a conceptual limit or just Oracle optimizer one? > > Regards > Michel Cadot > >
Sorry, from your original post i didn't understood, you asked about implementation internals...
I can't answer your question, but , apparently, my post was not correct in general case - the restriction on only 1 level visibility scope doesn't apply for usual correlated subqueries - this seems to work:
SQL> SELECT dummy
2 FROM dual a
3 WHERE EXISTS
4 (SELECT 1 5 FROM dual b 6 WHERE a.dummy = b.dummy 7 AND EXISTS 8 (SELECT 1 9 FROM dual c 10 WHERE c.dummy = a.dummy) 11 )
DUM
--- X SQL> Best regards MaximReceived on Wed Oct 19 2005 - 16:19:57 CDT
![]() |
![]() |