Re: Select/Group by/Order by question

From: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
To: mfork00(at)yahoo(dot)com (Michael Fork)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Select/Group by/Order by question
Date: 2004-04-10 01:26:21
Message-ID: 200404100126.i3A1QMUl002567@gw.tssi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> How about:
>
> select to_char(mtrantime,'mm-dd hh AM') as datetime,
> to_char(mtrantime,'AM') as sort_field,
> count(*) as tot from memtran
> group by sort_field, datetime
> order by sort_field, datetime;
>
> Then ignore the sort_field column?

I usually don't like to send managers reports with data labeled
'ignore this column'. :-)

With Tom's help, I found a solution.
--
Mike Nolan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Nolan 2004-04-10 01:45:17 Re: Data Encryption in PostgreSQL, and a Tutorial.6
Previous Message Christopher Browne 2004-04-10 01:15:07 Re: Data Encryption in PostgreSQL, and a Tutorial.