Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Outer Join to a subquery alternative?
Ed Prochak <ed.prochak_at_magicinterface.com> wrote in
news:1pqUb.233$hJ6.115_at_fe01.usenetserver.com:
> John wrote:
>
>> Oracle doesnt like >> >> select whatever >> from maintable m, >> childtable c >> where c.seq(+)=(select max(seq) from childtable c where >> maintableseq=m.seq)
Was a good reason why I didnt want to do it like this: the where clause in the main query is quite lengthy, and I dont want to duplicate it within a subquery. This would have a knockon effect to performance, whereas a subquery in the where clause in this way would implicitly only run for records in the main query that meet criteria.
Cheers Received on Fri Feb 06 2004 - 08:00:14 CST
![]() |
![]() |