Re: max timestamp - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: max timestamp
Date
Msg-id 20040215120253.S88869@megazone.bigpanda.com
Whole thread Raw
In response to max timestamp  (stermic@gw.co.jackson.mo.us (Michael Sterling))
List pgsql-sql
On Tue, 10 Feb 2004, Michael Sterling wrote:

> i'm trying to get the max time stamp, from each day, of a range of
> dates, not just the max time stamp for the complete range dates but
> for each day.

Maybe something like?

SELECT CAST(timestampcol AS DATE), max(timestampcol)FROM thetableGROUP BY CAST(timestampcol AS DATE);


pgsql-sql by date:

Previous
From: Tomasz Myrta
Date:
Subject: Re: ORDER BY TIMESTAMP_column ASC, NULL first
Next
From: Stephan Szabo
Date:
Subject: Re: ORDER BY TIMESTAMP_column ASC, NULL first