pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pascual De Ruvo <deruvo@gmail.com>
To: frank church <pgsql@adontendev.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using subselects as joins in POstgeSQL (possible?, examples)
Date: Fri, 22 Jul 2005 09:21:06 -0400
Message-ID: <fb73c1ee050722062173228831@mail.gmail.com> (raw)
In-Reply-To: <1122034397.42e0e2ddc3f4a@webmail.adontendev.net>
References: <1122034397.42e0e2ddc3f4a@webmail.adontendev.net>

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 = b.b

view thread (2+ messages)

Message-ID: <fb73c1ee050722062173228831@mail.gmail.com>
Permalink:  ../fb73c1ee050722062173228831@mail.gmail.com/
Also on:    postgresql.org/message-id/fb73c1ee050722062173228831@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: deruvo@gmail.com, pgsql@adontendev.net
  Subject: Re: Using subselects as joins in POstgeSQL (possible?, examples)
  In-Reply-To: <fb73c1ee050722062173228831@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox