Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 26 Oct 2007 @ 20:56:29 GMT


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


Subj:   Re: Random Date Updates
 
From:   Joseph D silva

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


Something I could quickly think of, is to use the teradata RANDOM(n,m) function to retrieve a date from Sys_Calendar.calendar view.

     SELECT CALENDAR_DATE
     FROM Sys_Calendar.Calendar
     WHERE day_of_calendar = RANDOM()

Joseph D'silva



     
  <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