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 883255286F for ; Fri, 22 Jul 2005 10:21:08 -0300 (ADT) 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 84225-04 for ; Fri, 22 Jul 2005 13:21:03 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by svr1.postgresql.org (Postfix) with ESMTP id E134C5287E for ; Fri, 22 Jul 2005 10:21:02 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 55so364554wri for ; Fri, 22 Jul 2005 06:21:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=p4mDGdodLV/QfTXN/OqD0E1HczpvJRUAyvcmOxPctYsq+uEKdExc2EiQLNKWJu3wmXuOTrDYen//259E6e+t1mrfOhclYC9Ajy3foIKhNDKIjSBecnyzF6Krtx+MbqLxm/1EPGW8LAncB3B4nZp1bMUc3+alyzCQVNl6yQ79XYQ= Received: by 10.54.14.41 with SMTP id 41mr1149487wrn; Fri, 22 Jul 2005 06:21:06 -0700 (PDT) Received: by 10.54.135.1 with HTTP; Fri, 22 Jul 2005 06:21:06 -0700 (PDT) Message-ID: Date: Fri, 22 Jul 2005 09:21:06 -0400 From: Pascual De Ruvo Reply-To: Pascual De Ruvo To: frank church Subject: Re: Using subselects as joins in POstgeSQL (possible?, examples) Cc: pgsql-sql@postgresql.org In-Reply-To: <1122034397.42e0e2ddc3f4a@webmail.adontendev.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_783_388595.1122038466407" References: <1122034397.42e0e2ddc3f4a@webmail.adontendev.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.303 tagged_above=0 required=5 tests=AWL, HTML_60_70, HTML_MESSAGE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/189 X-Sequence-Number: 22167 ------=_Part_783_388595.1122038466407 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 7/22/05, frank church wrote: >=20 >=20 >=20 > Is it possible to use subselects as joins in PostgreSQL. Absolutely. select * from=20 (select * from table1) as a,=20 (select * from table2) as b=20 where a.a =3D b.b ------=_Part_783_388595.1122038466407 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 7/22/05, frank church <pgsql@= adontendev.net> wrote:


Is it possible to use subselects as joins in PostgreSQL.

Absolutely.

 select * from
(select * from table1) as a,
(select * from table2) as b
where a.a =3D b.b




------=_Part_783_388595.1122038466407--