Re: Select/Group by/Order by question - Mailing list pgsql-general

From Mike Nolan
Subject Re: Select/Group by/Order by question
Date
Msg-id 200404100126.i3A1QMUl002567@gw.tssi.com
Whole thread Raw
In response to Re: Select/Group by/Order by question  ("Michael Fork" <mfork00@yahoo.com>)
List 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

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Data Encryption in PostgreSQL, and a Tutorial.
Next
From: Christopher Browne
Date:
Subject: Re: Data Encryption in PostgreSQL, and a Tutorial.