pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sad <sad@bankir.ru>
To: pgsql-sql@postgresql.org
Subject: Re: a wierd query
Date: Fri, 14 May 2004 07:45:48 +0400
Message-ID: <200405140745.48296.sad@bankir.ru> (raw)
In-Reply-To: <40A393FF.3030806@onesystem.com>
References: <323910-220045413878445@M2W099.mail2web.com>
	<200405131134.35156.sad@bankir.ru>
	<40A393FF.3030806@onesystem.com>

On Thursday 13 May 2004 19:27, you wrote:
> 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.

read the original problem
look at the DISTINCT clause in my query
and think again




view thread (16+ messages)  latest in thread

Message-ID: <200405140745.48296.sad@bankir.ru>
Permalink:  ../200405140745.48296.sad@bankir.ru/
Also on:    postgresql.org/message-id/200405140745.48296.sad@bankir.ru

 · 

reply

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: sad@bankir.ru
  Subject: Re: a wierd query
  In-Reply-To: <200405140745.48296.sad@bankir.ru>

* 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