Re: DISTINCT ... ORDER BY

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: DISTINCT ... ORDER BY
Дата
Msg-id 20031105131518.C12206@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: DISTINCT ... ORDER BY  (Nabil Sayegh <postgresql@e-trolley.de>)
Ответы Re: DISTINCT ... ORDER BY  (Nabil Sayegh <postgresql@e-trolley.de>)
Список pgsql-novice
On Wed, 5 Nov 2003, Nabil Sayegh wrote:

> Stephan Szabo wrote:
>
> > Your step 3 above isn't well defined in general.  There's no single place
> > in the sort order for a value of a column being distincted when the value
> > occurs multiple times.  In the data above, col1='b' occurs twice in the
> > sort order and you need to give an indication of which place in the sort
> > order you want to use.
>
> Ok, let's look for alternatives.

Well, what did you get when you tried something like Bruno's updated
example or my group by one, and lets work from there.

В списке pgsql-novice по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: DISTINCT ... ORDER BY
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: DISTINCT ... ORDER BY