![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 29 Feb 2008 @ 18:05:35 GMT
Here is a solution for you. It is an invalid date because you aren't specifying the date format of your new date. Hope this helps. Regards,
select cast(('31-dec-' || cast(cast((current_date (format 'yyyy')
(char(4))) as int)-1 as char(4))) as date format 'DD-MMM-YYYY')
Mike
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||