Re: retrieve grouping sets/rollup rows

Поиск
Список
Период
Сортировка
От Tom Smith
Тема Re: retrieve grouping sets/rollup rows
Дата
Msg-id CAKwSVFFfaJKA4O1Wi+3j7iAsd30ixzPBnaJeh04PNpuwSFZxBw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: retrieve grouping sets/rollup rows  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
exactly what I am looking for. very nice.  Thx

On Sun, Mar 13, 2016 at 10:44 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> On 03/13/2016 10:07 PM, Tom Smith wrote:
>>> It would help if the resultset has some param to mark which is which
>>> with the grouping sets index.

I think you're looking for the GROUPING() function.  See
http://www.postgresql.org/docs/9.5/static/functions-aggregate.html

                        regards, tom lane

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

Предыдущее
От: James Keener
Дата:
Сообщение: Re: retrieve grouping sets/rollup rows
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: Re: MongoDB 3.2 beating Postgres 9.5.1?