Re: max timestamp - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: max timestamp
Date
Msg-id 402FD021.8020403@klaster.net
Whole thread Raw
In response to max timestamp  (stermic@gw.co.jackson.mo.us (Michael Sterling))
List pgsql-sql
Dnia 2004-02-10 19:14, Użytkownik Michael Sterling napisał:

> 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.

select max(some_time)
group by some_time::date

or

select max(some_time)
group by date_trunc('day',some_time)

Regards,
Tomasz Myrta


pgsql-sql by date:

Previous
From: Robert Creager
Date:
Subject: Re: max timestamp
Next
From: Tomasz Myrta
Date:
Subject: Re: writing a dynamic sql