From: Tomasz Myrta <jasiek@klaster.net>
To: Michael Sterling <stermic@gw.co.jackson.mo.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: max timestamp
Date: Sun, 15 Feb 2004 21:01:37 +0100
Message-ID: <402FD021.8020403@klaster.net> (raw)
In-Reply-To: <f7359f44.0402101014.77198f7b@posting.google.com>
References: <f7359f44.0402101014.77198f7b@posting.google.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasiek@klaster.net, stermic@gw.co.jackson.mo.us
Subject: Re: max timestamp
In-Reply-To: <402FD021.8020403@klaster.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox