Re: Fw: Count rows group by time intervals

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fw: Count rows group by time intervals
Дата
Msg-id 27240.1178724498@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fw: Count rows group by time intervals  ("Loredana Curugiu" <loredana.curugiu@gmail.com>)
Список pgsql-novice
"Loredana Curugiu" <loredana.curugiu@gmail.com> writes:
>> On mine, If I subtract one date  from the other I get the number of days
>> in between...which is another integer, I guess. and '%'  is the modular
>> operator. Doesnt it work like this on yours?

> If I substract one date from the other I get an interval.

If you subtract two *date* values you get an integer.  If you subtract
two *timestamp* values you get an interval.

            regards, tom lane

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

Предыдущее
От: "Oliveiros Cristina"
Дата:
Сообщение: Re: Fw: Count rows group by time intervals
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: how to view the content of schema pg_catalog?