From: Robert Treat <xzilla@users.sourceforge.net>
To: Tim Lynch <admin+pgsqladmin@thirdage.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: OT: seeking query help, where?
Date: 16 Jan 2003 18:12:12 -0500
Message-ID: <1042758732.12025.19.camel@camel> (raw)
In-Reply-To: <071501c2bdac$cabaa790$2c0210ac@loisaida>
References: <071501c2bdac$cabaa790$2c0210ac@loisaida>
there are several ways to do this, one example would be:
select distinct(email_addr) from table1
union
select distinct(email_addr) from table2
You can ask questions like these on the pgsql-newbies or pgsql-sql lists
if you'd like (though generally you shouldn't get flamed no matter which
group you post to)
Robert Treat
On Thu, 2003-01-16 at 17:15, Tim Lynch wrote:
> First, sorry for the OT, flame me off-list!
>
> I'm a sysadmin being impressed into dba service. i've been getting along
> pretty well writing queries and making reports, but i've got some questions.
> suggestions for a good list/forum for help?
>
> from two tables both with email_addr columns, i want a distinct list of all
> email_addrs in one column. what i do now is select distinct on each and then
> sort -u the results.
>
> thanks in advance
> -t
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
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: xzilla@users.sourceforge.net, admin+pgsqladmin@thirdage.com
Subject: Re: OT: seeking query help, where?
In-Reply-To: <1042758732.12025.19.camel@camel>
References: <071501c2bdac$cabaa790$2c0210ac@loisaida> <1042758732.12025.19.camel@camel>
* 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