From: Rosser Schwarz <rosser.schwarz@gmail.com>
To: Andreas Joseph Krogh <andreak@officenet.no>
Cc: pgsql-sql@postgresql.org
Subject: Re: Making NULL entries appear first when ORDER BY <field> ASC
Date: Tue, 15 Feb 2005 20:24:50 -0600
Message-ID: <37d451f705021518246bdb5b05@mail.gmail.com> (raw)
In-Reply-To: <200502160055.59288.andreak@officenet.no>
References: <200502160055.59288.andreak@officenet.no>
while you weren't looking, Andreas Joseph Krogh wrote:
> Any idea how to achieve this?
...
ORDER BY coalesce(start_date, '1900-01-01') ASC
, coalesce(start_time, '1900-01-01') ASC;
/rls
--
:wq
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rosser.schwarz@gmail.com, andreak@officenet.no
Subject: Re: Making NULL entries appear first when ORDER BY <field> ASC
In-Reply-To: <37d451f705021518246bdb5b05@mail.gmail.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