Using intersect in subquery

Поиск
Список
Период
Сортировка
От Hamid Khoshnevis
Тема Using intersect in subquery
Дата
Msg-id 001f01bee91c$bc180740$810a0a0a@local.dom
обсуждение исходный текст
Ответы Re: [SQL] Using intersect in subquery  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-sql
I have tried to use intersect in subquery causing the following error.
Please help!
ERROR:  parser: parse error at or near "intersect"


select * from Table1
where KeyField1 in
(select KeyField2 from Table2 where  somecondition
intersect
select KeyField3 from Table3  where somecondition);

(I believe) I am running PG 6.4.  The INTERSECT by itself works, but not in
a subquery.

Thanks!

hamid




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

Предыдущее
От: "Hamid Khoshnevis"
Дата:
Сообщение: Using intersect in subquery
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] Using intersect in subquery