Re: I probably don't understand aggregates.

Поиск
Список
Период
Сортировка
От David G Johnston
Тема Re: I probably don't understand aggregates.
Дата
Msg-id CAKFQuwZJDDXmaDNzH5VuDS5+nmkPxTgZfXO60K5jW25yqdLEug@mail.gmail.com
обсуждение исходный текст
Ответ на Re: I probably don't understand aggregates.  (Markus Neumann <markus@neumann.ch>)
Ответы Re: I probably don't understand aggregates.  (Markus Neumann <markus.neumann@math.uzh.ch>)
Список pgsql-novice

But how can I get my wrapper function to evaluate the aggregate on the
whole table and work with the result afterwards?

Or do I need to change the aggregate?


​I do not follow but...

SELECT myWrapper(agg_output) FROM (
SELECT myAgg(x) AS agg_output FROM test
)​ agg_subquery;

It is not clear why you need both an aggregate and a wrapper...

David J.



View this message in context: Re: I probably don't understand aggregates.
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

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

Предыдущее
От: Markus Neumann
Дата:
Сообщение: Re: I probably don't understand aggregates.
Следующее
От: Markus Neumann
Дата:
Сообщение: Re: I probably don't understand aggregates.