Re: pivot query with count

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: pivot query with count
Дата
Msg-id 1365823755894-5752078.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: pivot query with count  (David Johnston <polobo@yahoo.com>)
Ответы Re: pivot query with count  (Tony Capobianco <tony.capobianco1@gmail.com>)
Список pgsql-sql
My prior comment simply answers your question.   You likely can rewrite your
query so that a separate grouping layer is not needed (or rather the group
by would exist in the main query and you minimize the case/sub-select column
queries and use aggregates and case instead).

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/pivot-query-with-count-tp5752072p5752078.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: pivot query with count
Следующее
От: Tony Capobianco
Дата:
Сообщение: Re: pivot query with count