From: Tim J Trowbridge <trowbrid@writeme.com>
To: pgsql-sql@postgresql.org
Subject: Order by birthdate
Date: Wed, 10 Jun 1998 21:39:44 -0500
Message-ID: <357F4370.5BB8@writeme.com> (raw)
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@writeme.com
Interested in my genealogy? http://www.execpc.com/~trowbrid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: trowbrid@writeme.com
Subject: Re: Order by birthdate
In-Reply-To: <357F4370.5BB8@writeme.com>
References: <357F4370.5BB8@writeme.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox