Re: grouping by date increments - Mailing list pgsql-sql

From Tom Lane
Subject Re: grouping by date increments
Date
Msg-id 6396.980266744@sss.pgh.pa.us
Whole thread Raw
In response to grouping by date increments  ("Graham Vickrage" <graham@digitalplanit.com>)
List pgsql-sql
"Graham Vickrage" <graham@digitalplanit.com> writes:
> I have written this successfully but need to get the count in time
> increments such as per day/week/month.

Perhaps use GROUP BY date_part(...).  See 
stgresql.org/devel-corner/docs/postgres/functions-datetime.htm
for doco on date_part().
        regards, tom lane


pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: select returns no line
Next
From: Tom Lane
Date:
Subject: Re: monster query, how to make it smaller