Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EDFD6476819 for ; Thu, 16 Jan 2003 18:22:45 -0500 (EST) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 1DCAB476D2F for ; Thu, 16 Jan 2003 18:17:24 -0500 (EST) Received: (qmail 28909 invoked by uid 500); 16 Jan 2003 23:29:43 -0000 Date: Thu, 16 Jan 2003 17:29:43 -0600 From: Bruno Wolff III To: Tim Lynch Cc: pgsql-admin@postgresql.org Subject: Re: OT: seeking query help, where? Message-ID: <20030116232943.GA28865@wolff.to> Mail-Followup-To: Tim Lynch , pgsql-admin@postgresql.org References: <071501c2bdac$cabaa790$2c0210ac@loisaida> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <071501c2bdac$cabaa790$2c0210ac@loisaida> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/184 X-Sequence-Number: 7026 On Thu, Jan 16, 2003 at 14:15:22 -0800, 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. Use the union operator.