X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 5CF3ECBA54 for ; Sun, 13 Jul 2003 16:32:01 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 02538-03 for ; Sun, 13 Jul 2003 16:32:23 +0000 (GMT) Received: from web10305.mail.yahoo.com (web10305.mail.yahoo.com [216.136.130.83]) by svr1.postgresql.org (Postfix) with SMTP id F0667CBA48 for ; Sun, 13 Jul 2003 13:31:58 -0300 (ADT) Message-ID: <20030713163222.88233.qmail@web10305.mail.yahoo.com> Received: from [147.188.192.41] by web10305.mail.yahoo.com via HTTP; Sun, 13 Jul 2003 17:32:22 BST Date: Sun, 13 Jul 2003 17:32:22 +0100 (BST) From: =?iso-8859-1?q?Jo?= Subject: How to write this query! To: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200307/277 X-Sequence-Number: 14391 These are my PostgreSQL tables: pid | name 1 | A 2 | B 3 | C 4 | D 5 | E tid | pid 1 | pid 2 | pid 3 1 | 1 | 2 | 3 Bascially, I would like to write a query to list only the names which their "pid" match those pids in the other table. If anyone knows, pls help!! Many Thanks!! Joe ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/