Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 09 Jan 2008 @ 16:30:02 GMT





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




Subj:   Re: Most efficient way to make Date field into char(4) YYMM
 
From:   Rob Paller



You can accomplish this via a double cast

     SELECT CAST(CAST(DATE AS DATE FORMAT 'YYMM') AS CHAR(4));

Hope this helps.





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 01 Dec 2008