Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 18 Aug 2008 @ 13:20:46 GMT


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


Subj:   Re: Subtract 30 days from current_timestamp(0)
 
From:   Tewksbury, Kevin

Try using the "interval" syntax:

     Select Current_timestamp(0) - interval '30' day as prunedate
        From (Select 1) Tmp (ONE);

Kevin R Tewksbury
Sr. Database Administrator
LimitedBrands
Limited Technology Services



     
  <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