Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B0C562E007D for ; Thu, 20 Mar 2008 16:35:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 05856-06-2 for ; Thu, 20 Mar 2008 16:34:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id 74BDD2E00AC for ; Thu, 20 Mar 2008 16:29:43 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so1504706ugf.49 for ; Thu, 20 Mar 2008 12:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=svMRk8RbceAdWJ4TIOvMEJvob/xPqU9O+rHykVxivm4=; b=t4Pc1gSlsyJrTtj+LA8nvc5ZCzEVikZVO4Lm5C/0sKfr8eoJIiYLM+OM8co9UlNmRIqdT1zq8hGpY9DZjOgNrVe+wGq9Rr46Su27I45bSA/clfhzwdfEeky/HehG98lLRXSE/7Om9T9XNsN8DfBsgHhQS2sn0o8RIhNWTcfggx4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FBMRxb3gxR06ulHfJJED0s+CBaLoH9WwBNDRf6dRlq2i1gmYvz0TGtRee5z8nspMoplr25sjWVaEqTXZyeKgQwuVFWHiVDlOLNMD5kSqKfH1/enPiUFzc74yh5PpPl9WvZoYyeL5XCXtumFTrmXghGCQCZk65bX7Ng/llY1qxaQ= Received: by 10.151.105.13 with SMTP id h13mr1038680ybm.180.1206040892241; Thu, 20 Mar 2008 12:21:32 -0700 (PDT) Received: by 10.150.198.15 with HTTP; Thu, 20 Mar 2008 12:21:32 -0700 (PDT) Message-ID: <36e682920803201221l7f4775b9r2fe0d7c23a40a83a@mail.gmail.com> Date: Thu, 20 Mar 2008 15:21:32 -0400 From: "Jonah H. Harris" To: "Tena Sakai" Subject: Re: compare 2 tables in sql Cc: pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <36e682920803191539i634ad367h14644ccf6b3b1661@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/158 X-Sequence-Number: 30486 On Thu, Mar 20, 2008 at 1:44 PM, Tena Sakai wrote: > Just a postscript. It is important to check > both ways. Because (sometimes) vice versa is > not necessarily true. Case in point below: Yes, I'm well aware of that. Still, you should UNION the result of both exceptions into a single result set. -- Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324 EnterpriseDB Corporation | fax: 732.331.1301 499 Thornall Street, 2nd Floor | jonah.harris@enterprisedb.com Edison, NJ 08837 | http://www.enterprisedb.com/