Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 21 Jan 2013 @ 15:44:07 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Data format issue
 
From:   Koushik Chandra

Hi,

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


Regards,

Koushik Chandra



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023