Re: DISTINCT ON troubles

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: DISTINCT ON troubles
Дата
Msg-id 200402191128.51124.josh@agliodbs.com
обсуждение исходный текст
Ответ на DISTINCT ON troubles  ("Jeremy Smith" <jer@highboard.com>)
Ответы Re: DISTINCT ON troubles  ("Jeremy Smith" <jer@highboard.com>)
Список pgsql-sql
Jeremy,

> Am I just approaching this all wrong and need to create a temporary table
> and draw from that, or is there a way to salvage this query?

Think about using a subquery instead of the DISTINCT ON approach.   I don't 
think you can get what you want with DISTINCT ON.

A temporary table is not necessary.


-- 
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Compiling pl/pgsql functions
Следующее
От: "Jeremy Smith"
Дата:
Сообщение: Re: DISTINCT ON troubles