Time Aggregates

Поиск
Список
Период
Сортировка
От Itai Zukerman
Тема Time Aggregates
Дата
Msg-id 87ittju6e7.fsf@matt.w80.math-hat.com
обсуждение исходный текст
Список pgsql-sql
Hi,

I'm currently doing this:
 SELECT symbol, date_trunc('minute', posted),        min(price), max(price), avg(price) FROM trade GROUP BY symbol,
date_trunc('minute',posted);
 

to get a list of minute-averages of trade prices.  I get the feeling
that this is bad form, that I should be doing this some other way.  Is
that the case?

-itai


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

Предыдущее
От: Jon Lapham
Дата:
Сообщение: Re: on line numbers, drop table errors, and log files
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Time Aggregates