Re: a wierd query

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: a wierd query
Дата
Msg-id 20040513222259.D23568@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: a wierd query  (sad <sad@bankir.ru>)
Список 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 по дате отправления:

Предыдущее
От: sad
Дата:
Сообщение: Re: a wierd query
Следующее
От: Greg Stark
Дата:
Сообщение: Re: isolation level