[SQL] Extract date from week

2005-11-08 Thread lucas
Hi Looking the e-mail I remembered a question. I saw that "select extract (week from now()::date)" will return the week number of current year. But, how can I convert a week to the first reference date. Ex: select extract(week from '20050105'::date); -- 5 Jan 2005 --Returns-- date_part | 1

Re: [SQL] Extract date from week

2005-11-08 Thread Jaime Casanova
On 11/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > Looking the e-mail I remembered a question. > I saw that "select extract (week from now()::date)" will return the > week number > of current year. But, how can I convert a week to the first reference > date. Ex: > select extract(week f

Re: [SQL] Extract date from week

2005-12-14 Thread Neil Dugan
Jaime Casanova wrote: On 11/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Looking the e-mail I remembered a question. I saw that "select extract (week from now()::date)" will return the week number of current year. But, how can I convert a week to the first reference date. Ex: select ex