From: Edmund Bacon <ebacon@onesystem.com>
To: sad <sad@bankir.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: a wierd query
Date: Thu, 13 May 2004 09:27:59 -0600
Message-ID: <40A393FF.3030806@onesystem.com> (raw)
In-Reply-To: <200405131134.35156.sad@bankir.ru>
References: <323910-220045413878445@M2W099.mail2web.com>
<200405131134.35156.sad@bankir.ru>
sad wrote:
> select distinct a as F from table
> union
> select distinct b as F from table;
>
Note that UNION only returns the unique values of the union
You can get repeated values by using UNION ALL.
--
Edmund Bacon <ebacon@onesystem.com>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ebacon@onesystem.com, sad@bankir.ru
Subject: Re: a wierd query
In-Reply-To: <40A393FF.3030806@onesystem.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