|
Archives of the TeradataForumMessage Posted: Sun, 10 Feb 2013 @ 10:25:57 GMT
Hi, I think what is happening here is that the CenturyBreak value in DBSControl is being used to determine if the date value is 19xx or 20xx. Check the "utilities volume 1, a - k" for details of DBSControl and CenturyBreak. If you can't change that control value then assuming that all of your dates are now 20xx you could simply concatenate '20' to the front of the date and change the format code, something like: SEL SUBSTR(cld.sourcecol ,3,5) AS xyz, '20'||xyz (DATE,FORMAT'yyyyddd') AS bb, cld.sourcecol FROM ProdDb.source_tbl cld Cheers, Dave Ward Analytics Ltd - Information in motion (www.ward-analytics.com)
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||