X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3440C3A3B20 for ; Fri, 29 Oct 2004 18:47:01 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13757-10 for ; Fri, 29 Oct 2004 17:46:53 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id E711E3A3B24 for ; Fri, 29 Oct 2004 18:46:53 +0100 (BST) Received: (qmail 29627 invoked by uid 500); 29 Oct 2004 17:57:54 -0000 Date: Fri, 29 Oct 2004 12:57:54 -0500 From: Bruno Wolff III To: Wei Weng Cc: pgsql-sql@postgresql.org Subject: Re: How do you compare (NULL) and (non-NULL)? Message-ID: <20041029175754.GB28827@wolff.to> Mail-Followup-To: Wei Weng , pgsql-sql@postgresql.org References: <417EB238.1000109@kencast.com> <20041027153643.GA14288@wolff.to> <418268D3.3080700@kencast.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <418268D3.3080700@kencast.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200410/209 X-Sequence-Number: 19312 On Fri, Oct 29, 2004 at 11:59:15 -0400, Wei Weng wrote: > > How do I write that? SELECT Parent FROM Channels ORDER BY Parent IS NULL, Parent ASC;