Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E7A994760BC; Tue, 3 Dec 2002 04:13:24 -0500 (EST) Received: from lx2.regaltronic.com (lx2.regaltronic.com [202.66.16.130]) by postgresql.org (Postfix) with ESMTP id B51E9476076; Tue, 3 Dec 2002 04:13:22 -0500 (EST) Received: (from daemon@localhost) by lx2.regaltronic.com (8.9.3/8.9.3) id RAA26123; Tue, 3 Dec 2002 17:13:07 +0800 Received: from UNKNOWN(192.168.1.17), claiming to be "regaltronic.com" via SMTP by lx2, id smtpda26110; Tue Dec 3 17:13:07 2002 Message-ID: <3DEC75A5.D544E5D@regaltronic.com> Date: Tue, 03 Dec 2002 17:13:09 +0800 From: Harry Yau X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,zh-TW MIME-Version: 1.0 To: PGG , PGA , PGH Subject: Problem of Null Ordering Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/20 X-Sequence-Number: 6515 Hi all, I got some problem with the ordering. I have a table which have a integer field , namely IF1, which is able to have NULL value. 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. (Same as other RDBMS does - Sybase, MYSQL etc.) Be more specified, I want to do something in the DBMS level instead of doing some union queries. And apply this standard to all other query and table in PGSQL. Thank In Advance. Harry Yau ( ^_^ )