Re: getting weekly total based on daily...

From: jerome <jerome(at)gmanmi(dot)tv>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: getting weekly total based on daily...
Date: 2003-01-27 15:34:02
Message-ID: 200301272334.02652.jerome@gmanmi.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

but this gives me week on year not week of month...

:)

On Monday 27 January 2003 11:31, you wrote:
> On Mon, Jan 27, 2003 at 16:52:50 +0800,
>
> jerome <jerome(at)gmanmi(dot)tv> wrote:
> > i was wondering is there a built-in funtion that gets the weeknumber
> > based on date..
>
> area=> select extract(week from current_date);
> date_part
> -----------
> 4
> (1 row)
>
> This is the ISO week of the year. Week 1 is the week containing the first
> Thursday of the year. Weeks go from Monday to Sunday.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holger Klawitter 2003-01-27 15:44:42 Re: required rights for PGDATA
Previous Message Tom Lane 2003-01-27 15:12:03 Re: passwords and 7.3