Re: select distinct and order by

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: select distinct and order by
Дата
Msg-id Pine.BSF.4.21.0108152248060.77073-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на select distinct and order by  (newsreader@mediaone.net)
Ответы Re: select distinct and order by  (newsreader@mediaone.net)
Список pgsql-general
On Thu, 16 Aug 2001 newsreader@mediaone.net wrote:

> Pg complained that select distinct column and
> order by column must be the same.

Depending on what you are doing, you may be able to
use group by with an explicit set value function on
the sort by field (for example:
select foo from table group by foo order by min(bar);)

(I don't know anything about the dbi interface really, so i'll
leave that part for someone who does)



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

Предыдущее
От: newsreader@mediaone.net
Дата:
Сообщение: select distinct and order by
Следующее
От: "Dr. Evil"
Дата:
Сообщение: Storing images in PG?