pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Louise Cofield <lcofield@box-works.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Multiple table join
Date: Mon, 6 Oct 2003 11:38:04 -0500
Message-ID: <20031006163804.GA27925@wolff.to> (raw)
In-Reply-To: <002d01c38c26$aaa76990$7801a8c0@Louise>
References: <002d01c38c26$aaa76990$7801a8c0@Louise>

On Mon, Oct 06, 2003 at 10:26:59 -0600,
  Louise Cofield <lcofield@box-works.com> 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.

Just list all three tables in the from item list and include both
conditions in the where clause (connected by and).

If there is more to your problem than this, you should supply more details.



view thread (4+ messages)  latest in thread

Message-ID: <20031006163804.GA27925@wolff.to>
Permalink:  ../20031006163804.GA27925@wolff.to/
Also on:    postgresql.org/message-id/20031006163804.GA27925@wolff.to

 · 

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: bruno@wolff.to, lcofield@box-works.com
  Subject: Re: Multiple table join
  In-Reply-To: <20031006163804.GA27925@wolff.to>

* 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