X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C4531D1E791 for ; Thu, 13 May 2004 05:28:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 28394-08 for ; Thu, 13 May 2004 05:28:06 -0300 (ADT) Received: from rock.spider.ru (rock.spider.ru [62.183.34.226]) by svr1.postgresql.org (Postfix) with ESMTP id B17D5D1C9C4 for ; Thu, 13 May 2004 05:28:03 -0300 (ADT) Received: from rock (localhost [127.0.0.1]) by rock (Postfix) with SMTP id BADA49132D for ; Thu, 13 May 2004 12:28:03 +0400 (MSD) Received: from sad.localnet.ru (sad.localnet.ru [10.0.0.33]) by rock.spider.ru (Postfix) with ESMTP id 93B3C91329 for ; Thu, 13 May 2004 12:28:03 +0400 (MSD) Content-Type: text/plain; charset="iso-8859-1" From: sad Organization: IT To: pgsql-sql@postgresql.org Subject: Re: a wierd query Date: Thu, 13 May 2004 11:34:35 +0400 User-Agent: KMail/1.4.3 References: <323910-220045413878445@M2W099.mail2web.com> In-Reply-To: <323910-220045413878445@M2W099.mail2web.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200405131134.35156.sad@bankir.ru> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/116 X-Sequence-Number: 17830 > i require the dictinct values from (visualizing each column > result as a set) the union of the two columns select distinct a as F from table union select distinct b as F from table;