Re: How to find entries missing in 2nd table?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How to find entries missing in 2nd table?
Дата
Msg-id 1152727998.14241.24.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на Re: How to find entries missing in 2nd table?  ("Exner, Peter" <Exner@his.de>)
Список pgsql-sql
On Wed, 2006-07-12 at 03:06, Exner, Peter wrote:
> Hi, 
> 
> what about
> 
> SELECT controller_id FROM control
> WHERE controller_id NOT IN
> (SELECT DISTINCT controller_id FROM datapack);

That one works too, but it's generally not as fast as the left join / is
null query on large tables.  Give the two a try on a test set and you
should see the speed difference.


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

Предыдущее
От: aurora
Дата:
Сообщение: Re: Unexpected SQL error for UPDATE
Следующее
От: "Aaron Bono"
Дата:
Сообщение: Re: Avoiding RI failure with INSERT ... SELECT FROM