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 > >
After a bit playing with your sql, i have a suspiction ( it seems to me, Tom Kyte's answer in mentioned thread was not quite correct as well ), the problem is with "correlated inline view". Indeed, my assumption is, such thing is impossible - i would hardly imagine a valid access path for - i.e. in a correlated subquery correlation names can be propagated down a couple of levels , maybe until the limit of 255 nested subqueries, but the inline view can't be made correlated.
SQL> select e.*
2 from emp e,
3 (select * from dept d where d.deptno=e.deptno) civ
4 where e.depno=civ.deptno
5 /
(select * from dept d where d.deptno=e.deptno) civ
*
Best regards
Maxim Received on Wed Oct 19 2005 - 17:55:50 CDT