Re: order by date desc but NULLs last

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: order by date desc but NULLs last
Дата
Msg-id 20030210185244.GA16454@wallace.ece.rice.edu
обсуждение исходный текст
Ответ на Re: order by date desc but NULLs last  (Jean-Luc Lachance <jllachan@nsd.ca>)
Список 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 по дате отправления:

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: order by date desc but NULLs last
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: problems with date and interval queries.