Re: JOIN of a table with many detail tables

Поиск
Список
Период
Сортировка
От Gregory Wood
Тема Re: JOIN of a table with many detail tables
Дата
Msg-id 005901c0a274$ee7dc5e0$7889ffcc@comstock.com
обсуждение исходный текст
Ответ на JOIN of a table with many detail tables  (DaVinci <bombadil@wanadoo.es>)
Список pgsql-general
>  I want to make a LEFT JOIN of table A with detail tables B and C. How can
I
>  make that?:
>
>   SELECT A.*, B.*, C.* FROM A LEFT JOIN B ON A.foo = B.bar ???????
>
>  I don't know where to put info of JOIN between A and C.
>
>  Any help, please? Thanks.

SELECT * FROM A LEFT JOIN B ON A.foo = B.bar LEFT JOIN C ON A.foo = C.bar

Should do it.

Greg


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