From: Mark Volpe <volpe.mark@epamail.epa.gov>
To: The Hermit Hacker <scrappy@hub.org>
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Ordering a date_part() query ...
Date: Tue, 18 Jan 2000 13:49:30 -0500
Message-ID: <3884B5BA.C1155D45@epamail.epa.gov> (raw)
References: <Pine.BSF.4.21.0001181316260.23487-100000@thelab.hub.org>
INSERT INTO my_brain VALUES ('clue') :-)
Whoops, Bruce's response reminded me,
what I meant to say was
ORDER BY "Summary - by Day/Hour"::datetime
Mark
The Hermit Hacker wrote:
>
> I have a query that looks like:
>
> SELECT ( date_part('month', stat_period) || '/' ||
> date_part('day', stat_period) || '/' ||
> date_part('year', stat_period) || ' ' ||
> date_part('hour', stat_period) || ':00:00' ) as "Summary - by
> Day/Hour",
> sum(impressions) as impressions, sum(click_thru) as click_thru
> FROM banner_count
> GROUP BY "Summary - by Day/Hour";
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: volpe.mark@epamail.epa.gov, scrappy@hub.org
Subject: Re: [SQL] Ordering a date_part() query ...
In-Reply-To: <3884B5BA.C1155D45@epamail.epa.gov>
References: <Pine.BSF.4.21.0001181316260.23487-100000@thelab.hub.org> <3884B5BA.C1155D45@epamail.epa.gov>
* 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