Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Need Help decoding a to_date(ed) character field
>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