Re: GROUPing problem

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: GROUPing problem
Date: 2003-02-23 07:02:10
Message-ID: 87n0knxyx9.fsf@stark.dyndns.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Try

select date_part('year', signedup), date_part('month', signedup),
count(*)
from member
group by date_part('year', signedup), date_part('month', signedup)
order by date_part('year', signedup), date_part('month', signedup)

--
greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message erwan ancel 2003-02-23 08:22:44 troubles with postgresql
Previous Message Shridhar Daithankar<shridhar_daithankar@persistent.co.in> 2003-02-23 07:01:43 Re: What filesystem?