Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0DFC476819; Thu, 16 Jan 2003 18:22:41 -0500 (EST) Received: from mx02.ipaper.com (mx02.ipaper.com [141.129.1.11]) by postgresql.org (Postfix) with ESMTP id DB8F9476964; Thu, 16 Jan 2003 18:17:15 -0500 (EST) Received: from S02ATW02.na.ipaper.com (s02atw02.ipaper.com [164.103.63.148]) by mx02.ipaper.com (8.11.6+Sun/8.10.2) with ESMTP id h0GNIET13184; Thu, 16 Jan 2003 17:18:15 -0600 (CST) Received: from 164.103.62.7 by S02ATW02.na.ipaper.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v5.0)); Thu, 16 Jan 2003 17:17:05 -0600 X-Server-Uuid: AF46FF6A-C785-473C-8C32-637F1D084C73 To: "Tim Lynch" Cc: pgsql-admin@postgresql.org, pgsql-admin-owner@postgresql.org Subject: Re: OT: seeking query help, where? MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: "Devinder K Rajput" Date: Thu, 16 Jan 2003 17:17:05 -0600 X-MIMETrack: Serialize by Router on SWMTA1.ipaper.com/IPAPER(Release 5.0.11 |July 24, 2002) at 01/16/2003 05:17:05 PM, Serialize complete at 01/16/2003 05:17:05 PM X-WSS-ID: 1239E2FB3386963-01-01 Content-Type: multipart/alternative; boundary="=_alternative 007FE7CA86256CB0_=" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/183 X-Sequence-Number: 7025 This is a multipart message in MIME format. --=_alternative 007FE7CA86256CB0_= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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) --=_alternative 007FE7CA86256CB0_= Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
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)



--=_alternative 007FE7CA86256CB0_=--