Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 02 Jan 2008 @ 14:05:42 GMT


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


Subj:   Finding previous value
 
From:   Krithiga

Hi,

I have a requirement where i have to find the previous adv_num that was been used.

     ITEM_NUM     ADVC_NUM     ITEM_ADVC_EFF_DT

     1111            12345     2007/08/29

     1111            23456     2007/08/29

In the above table, i need to get the advc_num=23456.How do i get? Cud anyone help me out in solving this issue.I tried using rank function,but i cud nt get it.


Thanks & Regards

krithiga



     
  <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