Re: SQL help - multiple aggregates

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: SQL help - multiple aggregates
Дата
Msg-id CAKFQuwZ-+MzeaPb-EUfAa7OJY+noxyoESSP+XUgwf666ChPM7Q@mail.gmail.com
обсуждение исходный текст
Ответ на SQL help - multiple aggregates  (hamann.w@t-online.de)
Список pgsql-general
On Thu, Aug 18, 2016 at 4:56 AM, <hamann.w@t-online.de> wrote:
select custid, count(vendid) as c415 from cv where vendid = 415 group by custid
​[...]

Is there a better way (by creating an aggregate function, perhaps)

​You may find crosstab in the tablefuncs extension to be of use.


​David J.​

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

Предыдущее
От: Ladislav Lenart
Дата:
Сообщение: Re: SQL help - multiple aggregates
Следующее
От: Francisco Olarte
Дата:
Сообщение: Re: SQL help - multiple aggregates