Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 11 Nov 2008 @ 08:39:05 GMT


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


Subj:   Re: Time interval between events
 
From:   Andrew Schroter

Have you considered an installed_dte and a deinstalled_dte column, where the deinstalled_dte column is updated when a replacement part of the same partID replaces an existing part at a location? You could then calculate the interval dynamically in your sql for each part. You could set the current part's deinstalled_dte to null or a "high" date and separately calculate that part's installed interval.


Cheers,

Andy



     
  <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