Re: a wierd query - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: a wierd query
Date
Msg-id 20040513222259.D23568@megazone.bigpanda.com
Whole thread Raw
In response to Re: a wierd query  (sad <sad@bankir.ru>)
List pgsql-sql
On Fri, 14 May 2004, sad wrote:

> 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

What about the fact that union already removes duplicates?



pgsql-sql by date:

Previous
From: sad
Date:
Subject: Re: a wierd query
Next
From: Greg Stark
Date:
Subject: Re: isolation level