Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2B56247657E for ; Tue, 3 Dec 2002 04:33:27 -0500 (EST) Received: from smtp1.jp.viruscheck.net (smtp1.jp.viruscheck.net [154.33.69.52]) by postgresql.org (Postfix) with ESMTP id 3702E47655A for ; Tue, 3 Dec 2002 04:32:51 -0500 (EST) Received: from [154.33.69.36] (helo=mail1.jp.viruscheck.net) by smtp1.jp.viruscheck.net with esmtp (Exim 3.16 #2) id 18J9QB-000OvZ-00; Tue, 03 Dec 2002 18:32:51 +0900 Received: from [61.119.142.233] (helo=mega-bucks.co.jp) by mail1.jp.viruscheck.net with esmtp (Exim 3.20 #1) id 18J9Q9-0002Kk-00; Tue, 03 Dec 2002 18:32:49 +0900 Message-ID: <3DEC7A08.40200@mega-bucks.co.jp> Date: Tue, 03 Dec 2002 18:31:52 +0900 From: Jean-Christian Imbeault User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en, ja MIME-Version: 1.0 To: Harry Yau Cc: PGG Subject: Re: Problem of Null Ordering References: <3DEC75A5.D544E5D@regaltronic.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/113 X-Sequence-Number: 34028 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.