Re: DISTINCT ... ORDER BY

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: DISTINCT ... ORDER BY
Дата
Msg-id 3FA95846.2020701@e-trolley.de
обсуждение исходный текст
Ответ на Re: DISTINCT ... ORDER BY  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Ответы Re: DISTINCT ... ORDER BY  (Bruno Wolff III <bruno@wolff.to>)
Re: DISTINCT ... ORDER BY  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-novice
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.

Is it possible to add a serial column to my ordered result ?

I hope there is a way to do it without temporary tables as I want to keep
it all in 1 query.

TFYH
--
  e-Trolley Sayegh & John, Nabil Sayegh
  Tel.: 0700 etrolley /// 0700 38765539
  Fax.: +49 69 8299381-8
  PGP : http://www.e-trolley.de


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

Предыдущее
От: "Corey W. Gibbs"
Дата:
Сообщение: Remove Unused Blobs?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: DISTINCT ... ORDER BY