Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 21 Apr 2009 @ 09:27:48 GMT


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


Subj:   Re: SELECT Subquery
 
From:   Liu, Jingchen

     select LoanID,tran.Amount tran_amount
     from loan
     inner join tran
     on loan.LoanID = tran.LoanID
     and Tran.Type = 'D'
     QUALIFY ROW_NUMBER() OVER (PARTITION BY LoanID ORDER BY tran.PostDate DESC  ) = 1


     
  <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