Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 27 Oct 2007 @ 09:27:12 GMT


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


Subj:   Re: Random Date Updates
 
From:   Dieter Noeth

hectorsiverio wrote:

  What is the proper way to update a date column with random?  


Calculate the date range and use startdate + random, e.g. for a date between 2000-01-01 and 2010-12-31:

     date '2000-01-01' + random(0,4017)

Dieter



     
  <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