How to query for Interval

Поиск
Список
Период
Сортировка
От Vishal Kashyap
Тема How to query for Interval
Дата
Msg-id 77b69d210604111353o7b7213d4q604fe21212507826@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to query for Interval
Re: How to query for Interval
Re: How to query for Interval
Список pgsql-novice
Hi,


I have a table with time stamps in it . These timestamp represent a event count.
I just wanted to know how could I query such that I get a count of
event per hour.

Table structure is

my_table(id serial, time_event timestamp,event varchar(200));

I want to do something like
select count(id) from  my_table where time_event in (every 1 hour);

Any pointers / help would be appreciated


--
With Best Regards,
Vishal Kashyap.
http://www.vishal.net.in

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

Предыдущее
От: Alasdair Young
Дата:
Сообщение: Re: Indexes slower when used in decending vs. ascending
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Indexes slower when used in decending vs. ascending order?