X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9A424D1DC01 for ; Sun, 15 Feb 2004 20:08:21 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 68208-10 for ; Sun, 15 Feb 2004 16:08:18 -0400 (AST) Received: from serwer.skawsoft.com.pl (skawina.eu.org [80.48.213.66]) by svr1.postgresql.org (Postfix) with ESMTP id 2DF2ED1CB0F for ; Sun, 15 Feb 2004 16:08:17 -0400 (AST) Received: from klaster.net (core-1.citynet.pl [80.48.135.14]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id C01AB2B3CB; Sun, 15 Feb 2004 21:08:16 +0100 (CET) Message-ID: <402FD269.3030102@klaster.net> Date: Sun, 15 Feb 2004 21:11:21 +0100 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.6) Gecko/20040113 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Fredrik Wendt Cc: pgsql-sql@postgresql.org Subject: Re: ORDER BY TIMESTAMP_column ASC, NULL first References: <20040212100626.GA21864@csbnet.se> In-Reply-To: <20040212100626.GA21864@csbnet.se> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/178 X-Sequence-Number: 16868 Dnia 2004-02-12 11:06, Użytkownik Fredrik Wendt napisał: > Hi! > > I read posts telling me that NULL values are considered greater than > non-null values. Fine. Is there a way to explicitly reverse this? Sure, choose combination you need: order by some_value is null asc/desc, some_value asc/desc Regards, Tomasz Myrta