Re: OUTER JOIN with filter - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: OUTER JOIN with filter
Date
Msg-id 20030301170535.U21117-100000@megazone23.bigpanda.com
Whole thread Raw
In response to OUTER JOIN with filter  ("Nicolas Fertig" <nfertig@swissnow.ch>)
Responses Re: OUTER JOIN with filter
List pgsql-sql
On Sat, 1 Mar 2003, Nicolas Fertig wrote:

> Can anyone help me with the problem bellow ?
>
> SELECT TM.some_field, TS.name
> FROM table_main TM
> LEFT OUTER JOIN (SELECT name FROM table_slave WHERE c1 = 'myvalue') TS
> USING(id)

Maybe,

select tm.some_field, ts.name
from table_tmain tm left outer join table_slave ts
on (tm.id=ts.id and ts.c1='myvalue');



pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Any limitation in size for return result from SELECT?
Next
From: Joe Conway
Date:
Subject: Re: Any limitation in size for return result from SELECT?