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: David Portas <REMOVE_BEFORE_REPLYING_dportas_at_acm.org>
Date: 16 Sep 2005 03:01:34 -0700
Message-ID: <1126864195.035900.124220@g44g2000cwa.googlegroups.com>


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

There is a useful solution in standard SQL. http://www.developersdex.com/gurus/articles/114.asp

Not something I've personally attempted in Oracle though.

--
David Portas
Received on Fri Sep 16 2005 - 05:01:34 CDT

Original text of this message

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