Re: Count rows by day interval

Поиск
Список
Период
Сортировка
От chester c young
Тема Re: Count rows by day interval
Дата
Msg-id 248641.9937.qm@web54314.mail.yahoo.com
обсуждение исходный текст
Ответ на Count rows by day interval  ("Loredana Curugiu" <loredana.curugiu@gmail.com>)
Список pgsql-sql
> ...

instead of date_trunc('day',sent_messages.date)

why don't you have a function that takes four three arguments:
- beginning date of query
- interval, ie, reminder_services.activity_days_min
- timestamp, ie, sent_messages.date

have it return the minimum date for that interval

as I think I understand your problem, that should work


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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

Предыдущее
От: ivan marchesini
Дата:
Сообщение: insert a sequence
Следующее
От: Ireneusz Pluta
Дата:
Сообщение: Re: insert a sequence