Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 07 Mar 2002 @ 00:58:14 GMT


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


Subj:   Re: Days between
 
From:   Sam Mosley

Craig,

Starting with V2R3 the new date arithmetic looks something like this to get days:

sel current_date - ('2002/02/01' (date)) (interval day(3));

You can specify your interval in days, months to days, etc. The number in the parenthesis (3) is the number of digits to hold the answer. If you don't provide sufficient digits it will error with an overflow.

You can also add and subtract intervals to/from dates, add/subtract intervals to get other intervals, etc.

Have fun.

Sam Mosley



     
  <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: 27 Dec 2016