Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 11 Feb 2012 @ 08:57:06 GMT


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


Subj:   Adding intervals dynamically.
 
From:   sivaram nelluri

Hello gurus,

I have multiple records at the same time, Ex: 100 records with same time including the milli seconds too, I am trying to stretch each of them into separate timestamps by adding a random number of seconds or milli seconds

Here is what i am trying to do,

     record_id, record_timestamp, row_number() over(partition by record_timestamp order by
     record_id) rnum, record_timestamp + interval 'rnum' second new_record_timestamp.?

But i am not able to make that rnum dynamically populated , i treid different options like interval '''||rnum||'''it was not working.

Does anyone have any idea on this?


Thanks

Siva



     
  <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