Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Tue, 30 Oct 2012 @ 13:42:57 GMT


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


Subj:   Re: Date conversion not working
 
From:   Anomy Anom

< -- Anonymously Posted: Tuesday, October 30, 2012 07:24 -- >

Hi,

I ran the below sql and didn't face any issue:

     sel
     cast(cast('10/30/2012' as date format 'mm/dd/yyyy') as date format
     'yyyy/mm/dd') "dt"
     from dbc.tables sample 1
     where dt=current_date;

There might be bad date records in your EMP_DT column (since it's defined as a VARCHAR, it won't be caught while loading the table). Please have a look at the data.


Regards.



     
  <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: 28 Jun 2020