Re: Help with SQL staterment

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: Help with SQL staterment
Дата
Msg-id 4E0D057D.6040809@pinpointresearch.com
обсуждение исходный текст
Ответ на Re: Help with SQL staterment  (Thom Brown <thom@linux.com>)
Ответы Re: Help with SQL staterment  (Thom Brown <thom@linux.com>)
Список pgsql-novice
On 06/30/2011 04:04 PM, Thom Brown wrote:
> SELECT DISTINCT ON (contactkey)
>      paymentkey, contactkey, paymentdate
> FROM
>      my_table
> ORDER BY
>      contactkey, paymentdate DESC
Gives the same result as my example but your solution is much cleaner.

Cheers,
Steve


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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Help with SQL staterment
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Help with SQL staterment