Re: [SQL] Ordering a date_part() query ...

From: Mark Volpe <volpe(dot)mark(at)epamail(dot)epa(dot)gov>
To: The Hermit Hacker <scrappy(at)hub(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Ordering a date_part() query ...
Date: 2000-01-18 18:49:30
Message-ID: 3884B5BA.C1155D45@epamail.epa.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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";
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2000-01-18 19:06:04 Re: [SQL] Ordering a date_part() query ...
Previous Message Bruce Momjian 2000-01-18 18:28:40 Re: [SQL] Ordering a date_part() query ...