Re: [SQL] Using intersect in subquery

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [SQL] Using intersect in subquery
Дата
Msg-id 199908180238.WAA12634@candle.pha.pa.us
обсуждение исходный текст
Ответ на Using intersect in subquery  ("Hamid Khoshnevis" <hamid@emarq.com>)
Ответы Re: [SQL] Using intersect in subquery  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Try 6.5.  We fixed some Intersect stuff.

[Charset iso-8859-1 unsupported, filtering to ASCII...]
> 
> 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
> 
> 
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: "Hamid Khoshnevis"
Дата:
Сообщение: Using intersect in subquery
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: [SQL] index on more-than-one columns?