Order by birthdate

From: Tim J Trowbridge <trowbrid(at)writeme(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Order by birthdate
Date: 1998-06-11 02:39:44
Message-ID: 357F4370.5BB8@writeme.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm trying to generate a birthday list ordered by month, then by day.
This is what I thought would work...

SELECT name,birthdate FROM table WHERE birthdate is not null ORDER BY
date_part('month',birthdate)

but psql returns:

ERROR: parser: parse error at or near "("

What's the problem?

--
Tim J Trowbridge trowbrid(at)writeme(dot)com
Interested in my genealogy? http://www.execpc.com/~trowbrid

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marin D 1998-06-11 07:49:35 Re: [SQL] Order by birthdate
Previous Message Richard Lynch 1998-06-10 23:01:27 insert/select returned table