From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Michael Sterling <stermic@gw.co.jackson.mo.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: max timestamp
Date: Sun, 15 Feb 2004 12:03:47 -0800 (PST)
Message-ID: <20040215120253.S88869@megazone.bigpanda.com> (raw)
In-Reply-To: <f7359f44.0402101014.77198f7b@posting.google.com>
References: <f7359f44.0402101014.77198f7b@posting.google.com>
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 thetable
GROUP BY CAST(timestampcol AS DATE);
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: sszabo@megazone.bigpanda.com, stermic@gw.co.jackson.mo.us
Subject: Re: max timestamp
In-Reply-To: <20040215120253.S88869@megazone.bigpanda.com>
* 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