Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Suggestion
Hi!
You could try to make a plsql function that is callable from SQL-SELECT
(that is probably the easiest).
Another try is somekind of inline view(or view). I have made a try here, it
is 100% _untested_,
and I'm not sure if it will lead to any help for you :-) but it might be
something to work on.
SELECT salgrade_o.grade,SUM(salgrade_o.losal) sales, accum.accum_sum FROM
( SELECT SUM (salgrade_i.losal) accum_sum, salgrade_i.grade FROM salgrade salgrade_i WHERE salgrade_i.grade<=salgrade_o.grade GROUP BY salgrade_i.grade ) accum, salgrade salgrade_o
Frank Received on Thu Mar 08 2001 - 01:00:16 CST
![]() |
![]() |