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

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: How to find entries missing in 2nd table?
Дата
Msg-id 5.2.1.1.0.20060711115934.00a4f2e0@pop6.sympatico.ca
обсуждение исходный текст
Ответ на How to find entries missing in 2nd table?  (alex-lists-pgsql@yuriev.com)
Список pgsql-sql
At 10:19 AM 7/11/06, alex-lists-pgsql@yuriev.com wrote:
>control:
>         ....
>         controller_id   pk;
>
>datapack:
>
>         controller_id   fk;
>
>I need to get all entries from the table control that are not listed in
>datapack.


select controller.controller_id from controller
left join datapack on controller.controller_id = datapack.controller_id
where datapack.controller_id is null;



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

Предыдущее
От: Bryce Nesbitt
Дата:
Сообщение: Re: Can function results be used in WHERE?
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: How to find entries missing in 2nd table?