Archives of the TeradataForum
Message Posted: Fri, 29 Feb 2008 @ 10:30:02 GMT
Could anyone tell me that whether
cast('31-dec'||cast(cast(cast(cast(current_date as format 'yyyy') as char(4))-1) as integer) as char(4)) as date)
when I try to convert that oracle statement into teradata,than upto char(4) before 'as date', it is working fine but putting one more cast as date gives error 'invalid date'.
In oracle,we easily convert char into date.while doing this thing in teradata it always give error 'invalid date'.
Anyone , tell me the reason as well as help me to sort out the problem.
Thanks & Regards
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|