Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 22 Feb 2010 @ 21:41:54 GMT


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


Subj:   Re: Age calculation
 
From:   Lipka, Paul

When I ran this code:

     sel
     cdate
     ,(date-cdate) year(4)
      from  Sys_Calendar.caldates
      where
      cdate between '2009-01-01' and '2009-12-31'
     order by 1

I received the value of 1 for the dates of 2009-01-01 thru 2009-02-22. I received the value 0 for the rest of the dates. I have a v6 and v12 box available, and got the same result on both.


Paul



     
  <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