Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> AW: Geometric mean
Hi
I'm not aware of any "out-of-the-box" Oracle solution either (like STDDEV or
AVG).
Looks like one has to roll ones own statistical functions when it comes to
calculating things like modus or median.
Is anybody aware of an extension, maybe in form of an old cartridge or a
pl/sql library to handle that stuff ?
The problem is, that for instance STDDEV is a "normal" SQL function, if you
roll your own to calculate other things, you end up having to call a pl/sql
function from sql, which isn't really a performance boost.
Stefan
-----Ursprüngliche Nachricht-----
Von: Robson, Peter [mailto:pgro_at_bgs.ac.uk]
Gesendet: Freitag, 14. November 2003 13:20
An: Multiple recipients of list ORACLE-L
Betreff: RE: Geometric mean
Thanks for that, Stephane -
hmmm, I'm still working on it... will post the successful script when I get it...
peter
edinburgh
> -----Original Message-----
> From: Stephane Faroult [mailto:sfaroult_at_oriolecorp.com]
> Sent: Thursday, November 13, 2003 5:24 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Geometric mean
>
>
> Peter,
>
> I am a mere shadow of what I used to be in mathematics,
> but wouldn't
> POWER(10,AVG(LOG(10,<column>)))
>
> do it?
>
> SF
>
> >----- ------- Original Message ------- -----
> >From: "Robson, Peter" <pgro_at_bgs.ac.uk>
> >To: Multiple recipients of list ORACLE-L
> ><ORACLE-L_at_fatcity.com>
> >Sent: Thu, 13 Nov 2003 08:49:24
> >
> >
> >Has anyone any code (SQL, PL/SQL) that will permit
> >the calculation of the
> >geometric mean of 'n' values?
> >
> >appreciated...
> >
> >peter
> >edinburgh
> >
> >
> >ps - yes I know Perl will do it, but that is not
> >the answer...
> >
> >
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Stephane Faroult
> INET: sfaroult_at_oriolecorp.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
BGS. . http://www.bgs.ac.uk *********************************************************************
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Robson, Peter INET: pgro_at_bgs.ac.uk Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stefan Jahnke INET: Stefan.Jahnke_at_bov.de Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Nov 14 2003 - 06:49:25 CST