Re: multiple paramters in aggregate function

Поиск
Список
Период
Сортировка
От Scara Maccai
Тема Re: multiple paramters in aggregate function
Дата
Msg-id 323963.55863.qm@web24605.mail.ird.yahoo.com
обсуждение исходный текст
Ответ на Re: multiple paramters in aggregate function  (Sim Zacks <sim@compulab.co.il>)
Ответы Re: multiple paramters in aggregate function
Список pgsql-general
> That could work in some cases, however in our case it would
> not produce
> desirable results.

Well I don't think you got Alban's suggestion right...
What he was trying to say was:

- use a regular (not aggregated) function to convert all measures to mm
- use the normal SUM() to sum those value
- use another regular function to convert from mm to whatever

select mm_to_m(sum(convert_to_mm(measure))) from a

Which is easier than my solution.







В списке pgsql-general по дате отправления:

Предыдущее
От: Sim Zacks
Дата:
Сообщение: Re: multiple paramters in aggregate function
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: totally different plan when using partitions