On Apr 21, 2004, at 5:19 AM, OtisUsenet wrote:
<snip>
> I am using the following query, but it's not returning dates back in
> the reverse chronological order:
<snip>
> ORDER BY
> date_part('year', uu.add_date), date_part('month', uu.add_date),
> date_part('day', uu.add_date) DESC;
Maybe I'm missing something, but why not just sort by "uu.add_date
DESC", like so:
ORDER BY uu.add_date DESC;
Seems like it would be more efficient, and there'd be no issues about
forgetting to put DESC after each date_part() (like you have above).
eric