Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 14 Sep 2011 @ 09:47:52 GMT


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


Subj:   Re: Mdiff on Date field
 
From:   Ulrich

try

     date - max(date_col)
         over (partition id order by date_cole asc rows
         between 1 preceding and 1 preceding)

Ulrich



     
  <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