Re: Recursive Queries

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: Rob Northcott <Rob(dot)Northcott(at)compilator(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Recursive Queries
Date: 2020-04-16 13:25:29
Message-ID: CAHOFxGrZb-zzF=jVqSTKMQqga8XOu=FJy4S997++Z5ZCw19tig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You don't want recursion, you want pivot table (Excel) behavior to reformat
rows into columns. The easiest way to get this data in its raw form would
be to group by date and hour of day and compute the count.

If you have the option to add extensions in your environment, then you
should be able to pivot your data pretty simply.

https://www.postgresql.org/docs/12/tablefunc.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Edward Macnaghten 2020-04-16 13:36:38 Re: Recursive Queries
Previous Message Julien Rouhaud 2020-04-16 13:24:35 Re: Recursive Queries