Re: SQL Question

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: SQL Question
Дата
Msg-id 533B27F7.4040608@hogranch.com
обсуждение исходный текст
Ответ на Re: SQL Question  (Robert DiFalco <robert.difalco@gmail.com>)
Список pgsql-general
On 4/1/2014 1:27 PM, Robert DiFalco wrote:
> Heh, scratch that, the EXISTS query DOES work. Is this the most
> efficient way to perform this kind of query? Thanks!

I would try and express that as a left outer join, and use (c2.owner_id
IS NOT NULL)  as your boolean field (or something like that)





--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: simple update query stuck
Следующее
От: David Johnston
Дата:
Сообщение: Re: simple update query stuck