Re: [SQL] Extract week from date, start with sunday

2005-11-07 Thread Robert Blixt
> -Ursprungligt meddelande- > Från: Janning Vygen [mailto:[EMAIL PROTECTED] > Skickat: den 7 november 2005 15:18 > Till: pgsql-sql@postgresql.org > Kopia: Robert Blixt > Ämne: Re: [SQL] Extract week from date, start with sunday > > Am Montag, 7. November 2005 14:47 schrieb Robert Blixt:

Re: [SQL] Extract week from date, start with sunday

2005-11-07 Thread A. Kretschmer
am 07.11.2005, um 14:47:35 +0100 mailte Robert Blixt folgendes: > > Hi, > > > I am currently extracting my weeks from a date like this.. > > SELECT INTO extractweek EXTRACT( week FROM ldate ); > > This works fine, except that this assumes (according > to ISO standard) that weeks starts with

[SQL] Extract week from date, start with sunday

2005-11-07 Thread Robert Blixt
Hi, I am currently extracting my weeks from a date like this.. SELECT INTO extractweek EXTRACT( week FROM ldate ); This works fine, except that this assumes (according to ISO standard) that weeks starts with Monday. I need the weeks to start with Sunday instead, otherwise I will not get the