Re: Left Join with Limit 1

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Left Join with Limit 1
Дата
Msg-id 561BCE33.6090308@BlueTreble.com
обсуждение исходный текст
Ответ на Left Join with Limit 1  (Alex Magnum <magnum11200@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Paul Jungwirth
Дата:
Сообщение: Re: Left Join with Limit 1
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: BDR workers exiting?