Combining queries

Поиск
Список
Период
Сортировка
Искать
От
Mark Kelly
Тема
Combining queries
Дата
Msg-id
201102191325.48594.pgsql@wastedtimes.net
Список
Дерево обсуждения
Combining queries Mark Kelly <pgsql@wastedtimes.net>
Re: Combining queries Sean Davis <sdavis2@mail.nih.gov>
Re: Combining queries Thomas Kellerer <spam_eater@gmx.net>
Re: Combining queries Mark Kelly <pgsql@wastedtimes.net>
Re: Combining queries Lew <noone@lewscanon.com>
Re: Combining queries Mark Kelly <pgsql@wastedtimes.net>
Re: Combining queries Lew <noone@lewscanon.com>
Hi.

If I have two queries:

SELECT pub_id as id, email FROM publication WHERE email_accepted = TRUE;

and 

SELECT contact_id as id, email FROM person WHERE email_accepted = TRUE;

is there any way I could combine these into a single query? I'd like to be 
able to create a view of all email-able entities in the system.

Thanks,

Mark
В списке pgsql-novice по дате отправления
От: Michael Wood
Дата:
От: Sean Davis
Дата:
Сообщение: Re: Combining queries
FAQ