From: Lee Harr <missive@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Ordering YYYY MM DD in reverse chrono order
Date: Wed, 21 Apr 2004 20:28:11 +0000
Message-ID: <BAY2-F143nfrgeTv3GJ0001e84a@hotmail.com> (raw)
>
>ORDER BY
>date_part('year', uu.add_date), date_part('month', uu.add_date),
>date_part('day', uu.add_date) DESC;
>
How about just
ORDER BY uu.add_date DESC
?
It would be cheaper without all of those date_part calls, and should
order in the same way.
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
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-general@postgresql.org
Cc: missive@hotmail.com
Subject: Re: Ordering YYYY MM DD in reverse chrono order
In-Reply-To: <BAY2-F143nfrgeTv3GJ0001e84a@hotmail.com>
References: <BAY2-F143nfrgeTv3GJ0001e84a@hotmail.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