From: Alex Magnum <magnum11200@xxxxxxxxx>
Hi, I have a simple table with singup timestamps What I would like to do is to create a table as shown below that displays the counts per our for the past n dates. I can do this with a function but is there an easy way to use recursive queries? Counts per hour for given date HR 2020-04-01 2020-04-02 ... 2020-04-10 Thanks for any suggestions. A Wouldn’t it be easier to do it the other way round, with a column per hour and a row per date? That way the query just needs one sub-query per hour to select just the count for that hour, and group
by date. Rob |