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


  <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