Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Week numbers and days

Re: Week numbers and days

From: horwinkle <whaddayamean_at_whaddayamean.com>
Date: Sat, 8 Feb 2003 20:35:39 -0500
Message-ID: <X8i1a.16250$nz.4478@fe06.atl2.webusenet.com>


Doesn't work ... not even close.
Do you guys try your stuff before you submit it?

Guido Konsolke wrote:
> "Valery V. Tsekhmister" wrote...
>> Hi Chris !
>>
>> It's only one pill needed to perform such a conversion:
>>
>> select next_day(
>> to_date(substr('200306',1,4),'YYYY')+
>> (substr('200306',5,2)-1)*7
>> ,'WEDNESDAY') from dual
>>
>>
>> Regards.
>>
>> Valery
>
> Hi Valery,
>
> not quite right, I think.
>
> Maybe:
>
> select next_day(to_date(substr('200306',1,4),'yyyy')+
> to_number(substr('200306',5,2)-7),'WEDNESDAY') from dual;
>
> will do it.
>
> Nice weekend to everyone,
> Guido
Received on Sat Feb 08 2003 - 19:35:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US