pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Louise Cofield <lcofield@box-works.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Multiple table join
Date: Mon, 06 Oct 2003 12:39:43 -0400
Message-ID: <3F81628F.2672.587C7E11@localhost> (raw)
In-Reply-To: <002d01c38c26$aaa76990$7801a8c0@Louise>

On 6 Oct 2003 at 10:26, Louise Cofield wrote:

> I am attempting to select fields Location and Item_Num from table A
> where A.Location = B.Location, 
> 
> AND 
> 
> select Item_Description from table C, where A.Item_Num = C.Item_Num.

Try:

select Location, Item_Num
from table A, B, C
where A.Location = B.Location
and A.Item_Num = C.Item_Num
-- 
Dan Langille : http://www.langille.org/




view thread (4+ messages)

Message-ID: <3F81628F.2672.587C7E11@localhost>
Permalink:  ../3F81628F.2672.587C7E11@localhost/
Also on:    postgresql.org/message-id/3F81628F.2672.587C7E11@localhost

 · 

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: dan@langille.org, lcofield@box-works.com
  Subject: Re: Multiple table join
  In-Reply-To: <3F81628F.2672.587C7E11@localhost>

* 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