How to get number of the week from datetime?

Поиск
Список
Период
Сортировка
От Hojdar Karel Ing.
Тема How to get number of the week from datetime?
Дата
Msg-id F0F2C79F20CFD2119D07080009DC528431E155@NT_MAIN_SG
обсуждение исходный текст
Список pgsql-general
Hi,

how I can get some agregates (avg, min, max) for whole week (in specified
year)?
For example from table with two columns : time datetime and value float8.
And I want to get average of value based on whole weeks. If I try to use
date_part('week',time) - Postgresql doesn't recognize word 'week'.

    Thanks   Karel


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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [GENERAL] Database synchronisation over the internet...
Следующее
От: Compte utilisateur Sultan-advl
Дата:
Сообщение: psql ERROR : Character Types Tuple is too big: size xxxxx