Grouping by week

Поиск
Список
Период
Сортировка
От Caleb Simonyi-Gindele
Тема Grouping by week
Дата
Msg-id 000001c47bfc$69d79e50$c201a8c0@borderveygqj37
обсуждение исходный текст
Ответ на New PHP + PostgreSQL group on Google Groups2  (dguarneri@satx.rr.com (N. David))
Ответы Re: Grouping by week  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-sql
I'm using 

SELECT EXTRACT(WEEK FROM trans_date), SUM(tran_amount) ... GROUP BY
trans_date 

and it is being used to group sales results by week. It works really well. 

What I'm wondering is if I can shift the week from a Mon-Sun
articulation(default with Postgre) to a Sun-Sat sequence. I need it that way
in order to comply with a legacy stats system.

Thanks,
Caleb




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

Предыдущее
От: dguarneri@satx.rr.com (N. David)
Дата:
Сообщение: New PHP + PostgreSQL group on Google Groups2
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Grouping by week