Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 764129FB8E1; Tue, 29 May 2007 16:33:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 42849-06; Tue, 29 May 2007 16:33:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 6940E9FB92C; Tue, 29 May 2007 16:33:55 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 5607B30AD4; Tue, 29 May 2007 21:33:54 +0200 (MET DST) Date: Tue, 29 May 2007 15:33:53 -0400 From: Lew User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 X-Newsgroups: pgsql.sql,pgsql.general Subject: Re: problems with SELECT query results References: <465C4B0B.4070906@joshuaneil.com> <465C5671.50907@archonet.com> <465C6705.5000505@joshuaneil.com> In-Reply-To: <465C6705.5000505@joshuaneil.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 25 X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 To: pgsql-general@postgresql.org pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/1559 X-Sequence-Number: 114752 Joshua wrote: > Thank you all for your assistance. I did end up finding NULL in the > 'onorder' column which should have been zero's.... this was in a test > table that happened to have some NULL in it for one reason or another > but I should not find this in the production version of the table. > > I also appreciate you pointing out the COALESCE function. I will find > that helpful in future work. > > I look forward to hopefully assisting you guys with some of your > PostgreSQL dilemmas in the future! Please do not top-post, and be sure to acknowledge both groups to whom you multi-posted, pgsql.sql and pgsql.general, for their help. (I don't know if there were others.) A more effective way to post to multiple groups is to cross-post, send to all groups in the single message as I did here, which unifies the threads so that all answers appear to each reader. Multi-posting (sending to each group separately) is frustrating because it fragments the conversation. -- Lew