Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8EEF4475E18 for ; Fri, 17 Jan 2003 05:53:22 -0500 (EST) Received: from hacklab.net (168.150-60-66-fuji-dsl.static.surewest.net [66.60.150.168]) by postgresql.org (Postfix) with SMTP id 91E29475DDA for ; Fri, 17 Jan 2003 05:53:21 -0500 (EST) Received: (qmail 8157 invoked by uid 421); 17 Jan 2003 10:50:12 -0000 Received: from pvspam-postgres@hacklab.net by hacklab.net with qmail-scanner-0.93 (. Clean. Processed in 0.02491 secs); 17/01/2003 02:50:12 Received: from localhost (HELO localhost.localdomain) (antispam@127.0.0.1) by localhost with SMTP; 17 Jan 2003 10:50:11 -0000 Subject: Re: OT: seeking query help, where? From: Tim Ellis To: pgsql-admin@postgresql.org In-Reply-To: <071501c2bdac$cabaa790$2c0210ac@loisaida> References: <071501c2bdac$cabaa790$2c0210ac@loisaida> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8-3mdk Date: 17 Jan 2003 02:37:54 -0500 Message-Id: <1042789075.2330.4.camel@timetop> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/188 X-Sequence-Number: 7030 On Thu, 2003-01-16 at 17:15, Tim Lynch wrote: > 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. You want either pgsql-sql or pgsql-novice, both of which are mailing lists for PostgreSQL. The former would be exactly the correct forum. Odds are someone in this list will answer you anyway with something mostly-useful. I think the UNION clause will help you to your eventual goal. -- Tim Ellis Senior Database Architect