Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 27 Jun 2007 @ 22:23:42 GMT


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


Subj:   Total payment volume per transaction per customer
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, June 27, 2007 16:00 -->

Hello,

I have the following table:

     T1

     Txn_id  Txn_date    Txn_amount_$  User_id
     001     06/27/2007  3.00          1010

I need to calculate a total payment volume for 30 days for each transaction from the data it accured and each user. Txn_id and user_id define a primary key on my table.

For example, if transaction happened on June 27, 2007, I need to see TPV of that customer for 30 days before June 27th inclusively.

My report needs to look like this

     Txn_id  User_id  date        TPV_30days
     001     1010     06/27/2007  450.00

Please advise how can I do that.


Thanks



     
  <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