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: Need Help decoding a to_date(ed) character field

Re: Need Help decoding a to_date(ed) character field

From: Zook <zook_at_web.com>
Date: 1998/01/22
Message-ID: <34c7be74.18085689@news.insync.net>#1/1

>A guess at what you may have meant...
>
>select
> decode(TEST.DATESTR,
> /* Decode Case 1 */
> '00000000' ,
> /* Decode Result 1 */
> to_date('02291999', 'mmddyyyy' )
> ,
> /* Decode Default */
> to_date( substr(TEST.DATESTR, 5, 2)
> || substr(TEST.DATESTR, 7, 2)
> || substr(TEST.DATESTR, 1, 4),
> 'mmddyyyy' )
> )
>from
> test
>/
>
>graham
>

Thanks! This worked like a champ! Received on Thu Jan 22 1998 - 00:00:00 CST

Original text of this message

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