Re: a wierd query - Mailing list pgsql-sql

From sad
Subject Re: a wierd query
Date
Msg-id 200405140745.48296.sad@bankir.ru
Whole thread Raw
In response to Re: a wierd query  (Edmund Bacon <ebacon@onesystem.com>)
Responses Re: a wierd query
List pgsql-sql
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



pgsql-sql by date:

Previous
From: "Jaime Casanova"
Date:
Subject: \d in 7.4
Next
From: Stephan Szabo
Date:
Subject: Re: a wierd query