How to get number of the week from datetime? - Mailing list pgsql-general

From Hojdar Karel Ing.
Subject How to get number of the week from datetime?
Date
Msg-id F0F2C79F20CFD2119D07080009DC528431E155@NT_MAIN_SG
Whole thread Raw
List 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 by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [GENERAL] Database synchronisation over the internet...
Next
From: Compte utilisateur Sultan-advl
Date:
Subject: psql ERROR : Character Types Tuple is too big: size xxxxx