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 03A64550E7 for ; Thu, 24 Feb 2005 17:32:15 +0000 (GMT) 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 25006-02 for ; Thu, 24 Feb 2005 17:32:13 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by svr1.postgresql.org (Postfix) with ESMTP id 233DB563B7 for ; Thu, 24 Feb 2005 17:32:08 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ICF00G1MFDUZ030@vms048.mailsrvcs.net> for pgsql-sql@postgresql.org; Thu, 24 Feb 2005 11:32:19 -0600 (CST) Date: Thu, 24 Feb 2005 12:36:16 -0500 From: "Joel Fradkin" Subject: Re: How do you compare contents of two tables using 2 pk In-reply-to: To: "'Kent Anderson'" , "'Pgsql-Sql@Postgresql. Org'" Message-id: <005601c51a97$58bf67d0$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.152 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200502/317 X-Sequence-Number: 20427 Couldn=92t you do a select * from t1 where not in uniquevar (select = uniquevar from t2)? Or do a join and select on a value in t2 being null. Joel Fradkin =A0