From: Devinder K Rajput <Devinder.Rajput@ipaper.com>
To: Tim Lynch <admin+pgsqladmin@thirdage.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-admin-owner@postgresql.org
Subject: Re: OT: seeking query help, where?
Date: Thu, 16 Jan 2003 17:17:05 -0600
Message-ID: <OFA22C413F.DF3E33C9-ON86256CB0.007EF1C2@ipaper.com> (raw)
you should be able to do something like:
select distinct email from test1
union (select distinct email from test2);
regards,
Devinder Rajput
Stores Division Corporate Offices
Chicago, IL
(773) 442-6474
"Tim Lynch" <admin+pgsqladmin@thirdage.com>
Sent by: pgsql-admin-owner@postgresql.org
01/16/2003 04:15 PM
To: pgsql-admin@postgresql.org
cc:
Subject: [ADMIN] OT: seeking query help, where?
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: Devinder.Rajput@ipaper.com, admin+pgsqladmin@thirdage.com, pgsql-admin-owner@postgresql.org
Subject: Re: OT: seeking query help, where?
In-Reply-To: <OFA22C413F.DF3E33C9-ON86256CB0.007EF1C2@ipaper.com>
References: <OFA22C413F.DF3E33C9-ON86256CB0.007EF1C2@ipaper.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