Re: max timestamp

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: max timestamp
Дата
Msg-id 20040215120253.S88869@megazone.bigpanda.com
обсуждение исходный текст
Ответ на max timestamp  (stermic@gw.co.jackson.mo.us (Michael Sterling))
Список pgsql-sql
On Tue, 10 Feb 2004, Michael Sterling wrote:

> i'm trying to get the max time stamp, from each day, of a range of
> dates, not just the max time stamp for the complete range dates but
> for each day.

Maybe something like?

SELECT CAST(timestampcol AS DATE), max(timestampcol)FROM thetableGROUP BY CAST(timestampcol AS DATE);


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

Предыдущее
От: Tomasz Myrta
Дата:
Сообщение: Re: ORDER BY TIMESTAMP_column ASC, NULL first
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: ORDER BY TIMESTAMP_column ASC, NULL first