RE: Geometric mean

2003-11-14 Thread Robson, Peter
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:[EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L
 [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: Geometric mean

2003-11-13 Thread Stephane Faroult
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 [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L
[EMAIL PROTECTED]
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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


Re: Geometric mean

2003-11-13 Thread Daniel Hanks
On Thu, 13 Nov 2003, Robson, Peter wrote:

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

But possibly could be an answer using extproc_perl. But that may or may not be a 
satisfactory solution, depending on your needs.

I'd be curious (as one new to the list) if anyone else is using extproc_perl? It's 
been useful for us to provide a regex capability to queries on occasion. Also to allow 
querying of MySQL databases from Oracle.

-- Dan Hanks

   Daniel Hanks - Systems/Database Administrator
   About Inc., Web Services Division

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Daniel Hanks
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).