Re: [SQL] Howto to force NULL rows at the bottom ?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dirk Lutzebaeck <lutzeb(at)aeccom(dot)com>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Howto to force NULL rows at the bottom ?
Date: 1999-12-03 17:28:04
Message-ID: 199912031728.MAA03972@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


No way to do this currently, but it is on our TODO list.

>
> Hi,
>
> how can I force NULL rows at the bottom of the result list in an
> ordered SELECT?
>
> with ORDER BY I get
>
> NULL
> Peter
> Jane
>
> but I want
>
> Peter
> Jane
> NULL
>
> --
> Dirk
>
> ************
>
>

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mario Jorge Nunes Filipe 1999-12-03 17:28:23 Re: [SQL] Wierd stuff
Previous Message Mario Jorge Nunes Filipe 1999-12-03 17:23:04 Re: [SQL] Wierd stuff