Re: Multiple table join

Поиск
Список
Период
Сортировка
От Louise Cofield
Тема Re: Multiple table join
Дата
Msg-id 003401c38c27$df7fbe50$7801a8c0@Louise
обсуждение исходный текст
Ответ на Re: Multiple table join  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
That was waaaaay too simple -- thank you!

-----Original Message-----
From: Bruno Wolff III [mailto:bruno@wolff.to] 
Sent: Monday, October 06, 2003 10:38 AM
To: Louise Cofield
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Multiple table join

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.



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Chris Faulkner"
Дата:
Сообщение: create new field
Следующее
От: "Dan Langille"
Дата:
Сообщение: Re: Multiple table join