Re: order by date desc but NULLs last - Mailing list pgsql-sql

From Ross J. Reedstrom
Subject Re: order by date desc but NULLs last
Date
Msg-id 20030210185244.GA16454@wallace.ece.rice.edu
Whole thread Raw
In response to Re: order by date desc but NULLs last  (Jean-Luc Lachance <jllachan@nsd.ca>)
List pgsql-sql
On Mon, Feb 10, 2003 at 01:32:54PM -0500, Jean-Luc Lachance wrote:
> Why not try the obvious first?

Because it's not always obvious ;-) Yup, if you want two kinds of order
(NULLs last, descending dates), use two order by clauses. 
> order by gradedtime is null, gradedtime desc;
> 
> "Ross J. Reedstrom" wrote:

<a different, less elegant way to get the NULLs last>

Ross



pgsql-sql by date:

Previous
From: Jean-Luc Lachance
Date:
Subject: Re: order by date desc but NULLs last
Next
From: Stephan Szabo
Date:
Subject: Re: problems with date and interval queries.