X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0F9E79FA4D8 for ; Mon, 5 Jun 2006 23:24:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 30930-04 for ; Mon, 5 Jun 2006 23:24:29 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web33309.mail.mud.yahoo.com (web33309.mail.mud.yahoo.com [68.142.206.124]) by postgresql.org (Postfix) with SMTP id A88429F9316 for ; Mon, 5 Jun 2006 23:24:27 -0300 (ADT) Received: (qmail 4310 invoked by uid 60001); 6 Jun 2006 02:24:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mIMAK6uVT5lFTESreNOVc8xdAo/UdWlwpQ6KwJTFA9e3DdV+5P8Ms5lhPMNUQAsWCL0SIT2hBCOAIzLK90d5w/HkJj60itCA7UfSXwNx7mqFpU0gB2V4v9E4jnSPGOmsI9lsYPUrlR/apFDSRhIF0acY57apFZSy7VMUi8soo+8= ; Message-ID: <20060606022426.4308.qmail@web33309.mail.mud.yahoo.com> Received: from [12.9.179.126] by web33309.mail.mud.yahoo.com via HTTP; Mon, 05 Jun 2006 19:24:25 PDT Date: Mon, 5 Jun 2006 19:24:25 -0700 (PDT) From: Subject: Re: How To Exclude True Values To: operationsengineer1@yahoo.com, "pgsql-sql@postgresql.org" In-Reply-To: <20060606020714.61758.qmail@web33304.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/56 X-Sequence-Number: 25292 > > hi all, > > > > how can i exclude true values for this query? > > > > http://www.rafb.net/paste/results/obtkGz26.html > > > > if i uncomment out > > > > -- AND t_inspect_result.inspect_result_pass = > 'f' > > > > it looks for prior falses within an inspect_id and > > returns it. i want the original result set minus > > the > > trues, if possible. > > > > tia... > > this SQL appears to do the trick... > > http://www.rafb.net/paste/results/zZKIjH80.html > the finished query can be found here: http://www.rafb.net/paste/results/Cu2FoO56.html working out that query sure felt an awful lot life fighting a fire breathing dragon... with tissue paper armour... -lol- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com