Received: from snipe.prod.itd.earthlink.net (snipe.prod.itd.earthlink.net [207.217.120.62]) by hub.org (8.10.1/8.10.1) with ESMTP id e8OFIrs27676 for ; Sun, 24 Sep 2000 11:18:53 -0400 (EDT) Received: from earthlink.net (lsanca1-ar8-221-213.dsl.gtei.net [4.35.221.213]) by snipe.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id IAA04861; Sun, 24 Sep 2000 08:18:47 -0700 (PDT) Message-ID: <39CE1B5D.B216E84F@earthlink.net> Date: Sun, 24 Sep 2000 08:18:53 -0700 From: Fredrick Bartlett X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Indraneel Majumdar CC: pgsql-sql@postgresql.org Subject: Re: Select between two databases References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200009/200 Not sure if same can be accomplished with different servers. Try the following for database's on one server, use alias & dot notation... select a1.colA1 from myDatabase1.tableA1 a1 where a1.A2 in (select b1.colB1 from myDatabase2.tableB1 b1) Indraneel Majumdar wrote: > Hi, > > Does any one know how I may select between two databases running on same > machine or on different machines eg. > > select colA1 from tableA1 where colA2 in (select colB1 from tableB1); > > here tableA1 and tableB1 are in different databases. The two databases > might be under the same postmaster or on different machines under > different postmasters. How do I query both simultaneously? Is it possible? > > Thanks, > Indraneel > > /************************************************************************. > # Indraneel Majumdar ¡ E-mail: indraneel@123india.com # > # Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com # > # Centre for DNA Fingerprinting and Diagnostics, # > # Hyderabad, India - 500076 # > `************************************************************************/