Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 25 May 2004 @ 15:19:46 GMT


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


Subj:   Re: Substract 1 year from leap year - bug?
 
From:   Fred W Pluebell

ANSI standard says MONTH / YEAR interval arithmetic should not adjust day of month. Teradata implemented the ADD_MONTHS() extension specifically to address this problem:

     SELECT ADD_MONTHS(date '2004-02-29', -12)
       2003-02-28


     
  <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