Re: Sorting an aggregated column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sorting an aggregated column
Дата
Msg-id 15732.1080019044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Sorting an aggregated column  ("David Witham" <davidw@unidial.com.au>)
Список pgsql-sql
"David Witham" <davidw@unidial.com.au> writes:
> This output is correct in this case but there is no guarantee that the
> answers will come out in "question" order. I can't see how to
> incorporate sorting by the "question" column using this approach.

As of PG 7.4 you can reliably use a sorted sub-select to determine the
order of inputs to a user-defined aggregate function.  See for instance
http://archives.postgresql.org/pgsql-general/2003-02/msg00917.php
        regards, tom lane


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

Предыдущее
От: "David Witham"
Дата:
Сообщение: Sorting an aggregated column
Следующее
От: "David Witham"
Дата:
Сообщение: Re: Sorting an aggregated column