pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hamid Khoshnevis <hamid@emarq.com>
To: pgsql-sql@postgresql.org
Subject: Using intersect in subquery
Date: Tue, 17 Aug 1999 17:48:18 -0700
Message-ID: <001301bee913$5cc027e0$810a0a0a@local.dom> (raw)

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





view thread (7+ messages)  latest in thread

Message-ID: <001301bee913$5cc027e0$810a0a0a@local.dom>
Permalink:  ../001301bee913$5cc027e0$810a0a0a@local.dom/
Also on:    postgresql.org/message-id/001301bee913$5cc027e0$810a0a0a@local.dom

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: hamid@emarq.com
  Subject: Re: Using intersect in subquery
  In-Reply-To: <001301bee913$5cc027e0$810a0a0a@local.dom>
  References: <001301bee913$5cc027e0$810a0a0a@local.dom>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox