Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 08 Jun 2005 @ 12:36:33 GMT


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


Subj:   Re: Using Add_Months with column defined as 'YYYYMM' (Char(6))
 
From:   Nisha Sinha , Gurgaon

Hi,

Assume your period as June, 2005 i.e. '200506'. Try out this -

     SELECT ADD_MONTHS(CAST (('200506' || '01') AS DATE FORMAT 'YYYYMMDD'), -26);

Thanks.



     
  <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