Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 18 Apr 2012 @ 15:35:48 GMT


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


Subj:   Help required in casting the date
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, April 18, 2012 07:29 -->

Hi Experts,

Could Someone help me in casting the date in below query.

     SELECT CAST(070401 AS DATE FORMAT 'YYYY-MM-DD')

and the Output is 1907-04-01.


But I expect the result of 2007-04-01. how to achieve it?



     
  <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: 27 Dec 2016