Search Postgresql Archives

Re: retrieve grouping sets/rollup rows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



exactly what I am looking for. very nice.  Thx

On Sun, Mar 13, 2016 at 10:44 PM, Tom Lane <tgl@xxxxxxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux