Re: Locating all Children given Set of Parents

Поиск
Список
Период
Сортировка
От Adam Sherman
Тема Re: Locating all Children given Set of Parents
Дата
Msg-id 195300000.1052848243@saturn
обсуждение исходный текст
Ответ на Re: Locating all Children given Set of Parents  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-sql
On 05/13/03 09:47:46 -0700 Josh Berkus wrote:

> Select children.*
> from children where exists (select pc_id
>     from parent_child
>     where pc.child_id = children.id
>     and pc.parent_id IN ($parent_id_list)
>     );

Great, that works fine.

pc_id is not important.

Thanks for your quick help!

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819



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

Предыдущее
От: Adam Sherman
Дата:
Сообщение: Re: Locating all Children given Set of Parents
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Locating all Children given Set of Parents