Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 06 Jun 2005 @ 11:34:05 GMT





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




Subj:   Re: Using Add_Months with column defined as 'YYYYMM' (Char(6))
 
From:   Goode, Mervyn



This worked for me:

     select add_months(cast (yourdate||'01' as date format 'yyyymmdd'),-36)
          from your_table

Merv





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