From: Jean-Christian Imbeault <jc@mega-bucks.co.jp>
To: Harry Yau <harry.yau@regaltronic.com>
Cc: PGG <pgsql-general@postgresql.org>
Subject: Re: Problem of Null Ordering
Date: Tue, 03 Dec 2002 18:31:52 +0900
Message-ID: <3DEC7A08.40200@mega-bucks.co.jp> (raw)
References: <3DEC75A5.D544E5D@regaltronic.com>
Harry Yau wrote:
When I query this table and Order by IF1, the row that have the value of
NULL will come after the row that have a number value. I am wondering is
there anything I can do to make the row with Null value come before the
row with a number value.
All you need to do is order your results by IF1. Use:
select IF1 from TABLE_NAME order by IF1 desc;
Jc
PS Don't crosspost to other postgres groups. It's very rude. Pick the
group that best first your particular need and post to only that group.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jc@mega-bucks.co.jp, harry.yau@regaltronic.com, pgsql-general@postgresql.org
Subject: Re: Problem of Null Ordering
In-Reply-To: <3DEC7A08.40200@mega-bucks.co.jp>
References: <3DEC75A5.D544E5D@regaltronic.com> <3DEC7A08.40200@mega-bucks.co.jp>
* 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