From: Bruno Wolff III <bruno@wolff.to>
To: Andrew Perrin <clists@perrin.socsci.unc.edu>
Cc: Tim Lynch <admin+pgsqladmin@thirdage.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: OT: seeking query help, where?
Date: Fri, 17 Jan 2003 09:12:03 -0600
Message-ID: <20030117151203.GA1798@wolff.to> (raw)
In-Reply-To: <Pine.LNX.4.21.0301170856130.14045-100000@perrin.socsci.unc.edu>
References: <071501c2bdac$cabaa790$2c0210ac@loisaida>
<Pine.LNX.4.21.0301170856130.14045-100000@perrin.socsci.unc.edu>
On Fri, Jan 17, 2003 at 08:57:14 -0500,
Andrew Perrin <clists@perrin.socsci.unc.edu> wrote:
> I'd suggest something similar to, but slightly different from, what others
> have:
>
> SELECT DISTINCT email FROM (SELECT email FROM table_1 UNION SELECT
> email FROM table_2) AS combined;
>
> that way you avoid duplicates across tables.
The union operator already removes duplicates.
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-admin@postgresql.org
Cc: bruno@wolff.to, clists@perrin.socsci.unc.edu, admin+pgsqladmin@thirdage.com
Subject: Re: OT: seeking query help, where?
In-Reply-To: <20030117151203.GA1798@wolff.to>
References: <071501c2bdac$cabaa790$2c0210ac@loisaida> <Pine.LNX.4.21.0301170856130.14045-100000@perrin.socsci.unc.edu> <20030117151203.GA1798@wolff.to>
* 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