| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: question for the wise?
Let me clarify a few of points here:
select a.line, a.stn, a.done_cps
from (select line, stn, sum((select nvl(sum(cps),0) from table (select cnt
from tote_log
where line = x.line
and stn = x.stn
and tote = x.tote)
)) as done_cps
from tote_log x
There is an index on tote_log made up of columns line, tote, stn respectively.
actual benchmarks:
![]() |
![]() |