Re: Calculating product from rows - (aggregate product ) - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Calculating product from rows - (aggregate product )
Date
Msg-id 20090504111046.GF5414@a-kretschmer.de
Whole thread Raw
In response to Re: Calculating product from rows - (aggregate product )  (Jasen Betts <jasen@xnet.co.nz>)
List pgsql-general
In response to Jasen Betts :
> > Is there an already existing function that does this.
>
> here's one way to cheat: logarythms.
>
> select exp(sum(ln( thiscolumn ))) from foo;
>
>  :^)

nice ;-)


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-general by date:

Previous
From: Jasen Betts
Date:
Subject: Re: keeping track of function execution
Next
From: Grzegorz Buś
Date:
Subject: Re: could not bind IPv4 socket