Re: Calculating product from rows - (aggregate product )

Поиск
Список
Период
Сортировка
От Dennis Brakhane
Тема Re: Calculating product from rows - (aggregate product )
Дата
Msg-id 226a19190905041428o15959589j3974226ad2420f46@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Calculating product from rows - (aggregate product )  (Jasen Betts <jasen@xnet.co.nz>)
Ответы Re: Calculating product from rows - (aggregate product )  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Adam Ruth
Дата:
Сообщение: uuid data type and ODBC
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Calculating product from rows - (aggregate product )