Re: Left Join with Limit 1 - Mailing list pgsql-general

From Jim Nasby
Subject Re: Left Join with Limit 1
Date
Msg-id 561BCE33.6090308@BlueTreble.com
Whole thread Raw
In response to Left Join with Limit 1  (Alex Magnum <magnum11200@gmail.com>)
List pgsql-general
On 10/12/15 10:03 AM, Alex Magnum wrote:
> Is there a way to use a limit in the join?

SELECT ... FROM table_a a
   LEFT JOIN ( SELECT ... FROM table_b WHERE ... LIMIT 1) b
     ON a.blah = b.blah
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


pgsql-general by date:

Previous
From: Paul Jungwirth
Date:
Subject: Re: Left Join with Limit 1
Next
From: Jim Nasby
Date:
Subject: Re: BDR workers exiting?