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

Home -> Community -> Mailing Lists -> Oracle-L -> AW: Geometric mean

AW: Geometric mean

From: Stefan Jahnke <Stefan.Jahnke_at_bov.de>
Date: Fri, 14 Nov 2003 04:49:25 -0800
Message-ID: <F001.005D6ABB.20031114044925@fatcity.com>


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).
>



This e-mail message, and any files transmitted with it, are confidential and intended solely for the use of the addressee. If this message was not addressed to you, you have received it in error and any copying, distribution or other use of any part of it is strictly prohibited. Any views or opinions presented are solely those of the sender and do not necessarily represent those of the British Geological Survey. The security of e-mail communication cannot be guaranteed and the BGS accepts no liability for claims arising as a result of the use of this medium to transmit messages from or to the
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

Original text of this message

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