Archives of the TeradataForum
Message Posted: Mon, 21 Jan 2013 @ 15:44:07 GMT
I am having data format issue. I have a table where the date column is defined as the format "yyyy/mm/dd" and when I am selecting from this table and doing substr it is giving correct result.
But I have complex transformation so in between I am inserting the data in a volatile temporary table where the data format is changing to "yy/mm/dd", though in the select I have specified the format as "yyyy/mm/dd". Because of this change of format all the sub-strings are working wrongly.
Can some one please help how to resolve this.
sel COLUMN_1 date_column from table1
here date format is coming correctly.
CREATE VOLATILE TABLE VTT AS ( SELECT column_1 (format 'YYYY-MM-DD') AS column_11 from table1) WITH DATA ON COMMIT PRESERVE ROWS;
here the date format is changing to "yy/mm/dd"
Please suggest to resolve
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|