From: Horaci Cuevas <hcuevas@perti.com>
To: pgman@candle.pha.pa.us
Subject: PostgreSQL
Date: Fri, 26 Nov 1999 16:49:55 +0100
Message-ID: <NABBJFCKFCOHFBNGLGHOAEGDCDAA.hcuevas@perti.com> (raw)
Hi!
I'm using PostgreSQL for a search-web based database, and i saw a missing
function mostly found in DB2 and others, where, you can get results from
a query having a WHERE condition to exist or not in another SQL sentence .
In DB2 is:
SELECT field1, field2 FROM tab1 WHERE field1 IN ( select field3 from tab2 )
or
SELECT field1, field2 FROM tab1 where field1 NOT IN ( select field3 from tab2 )
PostgreSQL already has that, but only allows to return 1 result, ex:
SELECT field1, field2 FROM tab1 where field1 =
( select field 3 from tab2 where id=1 )
Would be great if that where added to the TODO as a future Feature.
Thanks in Advance.
Horaci Cuevas.
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-general@postgresql.org
Cc: hcuevas@perti.com, pgman@candle.pha.pa.us
Subject: Re: PostgreSQL
In-Reply-To: <NABBJFCKFCOHFBNGLGHOAEGDCDAA.hcuevas@perti.com>
References: <NABBJFCKFCOHFBNGLGHOAEGDCDAA.hcuevas@perti.com>
* 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