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

From Dennis Brakhane
Subject Re: Calculating product from rows - (aggregate product )
Date
Msg-id 226a19190905041428o15959589j3974226ad2420f46@mail.gmail.com
Whole thread Raw
In response to Re: Calculating product from rows - (aggregate product )  (Jasen Betts <jasen@xnet.co.nz>)
Responses Re: Calculating product from rows - (aggregate product )
List pgsql-general
On Mon, May 4, 2009 at 12:53 PM, Jasen Betts <jasen@xnet.co.nz> wrote:
> select exp(sum(ln( thiscolumn ))) from foo;

Keep in mind that it won't work when the table containts negative
numbers, though (or zeros, but since in this case the product is also
zero, it doesn't matter)

pgsql-general by date:

Previous
From: Adam Ruth
Date:
Subject: uuid data type and ODBC
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Calculating product from rows - (aggregate product )