Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: "PRODUCT()" aggregate function

Re: "PRODUCT()" aggregate function

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 16 Sep 2005 08:47:11 -0700
Message-ID: <1126885582.935073@yasure>


lawk wrote:
> Hi,
>
> I work for an bank and runs an in-house system that calculates
> portfolio performance.
>
> There is an upstream system that calculates daily performance. My
> system takes these daily performance, and sequentially multiplies them
> to arrive at, say, the 3M moving window performance.
>
> This results in having to loop thru EVERY SINGLE daily performance row,
> which obviously does not scale well.
>
> Is there a function (or a commercial PKG) that has an aggregate
> function that calculates the PRODUCT of a certain col, via a GROUP BY
> clause?
>
> Thks...
> L

In addition to the excellent suggestions others have supplied also look into using NATIVE rather than INTERPRETED compilation. It may provide a substantial performance improvement.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Fri Sep 16 2005 - 10:47:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US