Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 25 May 2004 @ 15:10:49 GMT


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


Subj:   Substract 1 year from leap year - bug?
 
From:   Simard Rudel

Hi all,

I'm trying to substract 1 year or 12 months from 2004-02-29 and I have <2665 Invalid date> error message.

     SELECT CAST('2004-02-29' AS DATE)  - INTERVAL '12' MONTH
     SELECT CAST('2004-02-29' AS DATE)  - INTERVAL '1' YEAR

Is it a bug?


Rudel Simard
R�gie de l'assurance-maladie du Qu�bec
Administration des donn�es



     
  <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