Re: [SQL] Using intersect in subquery

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Hamid Khoshnevis <hamid(at)emarq(dot)com>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Using intersect in subquery
Date: 1999-08-18 02:38:13
Message-ID: 199908180238.WAA12634@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Oleg Bartunov 1999-08-18 05:06:21 Re: [SQL] index on more-than-one columns?
Previous Message Hamid Khoshnevis 1999-08-18 01:55:23 Using intersect in subquery