I'm using SQL, trying to write a query that will sum payment amounts made on the same day to an account. I'm not having luck and hoping someone could shine some light on which approach to take. Basically, if an account posts two payments in the same day, I want the information on a pivot table that breaks down the Account, Payment Date, Sum of Payments.
Original Data File
Account Payment Date Amount
10001 6/20/2014 10
10002 6/20/2014 10
10003 6/20/2014 10
10004 6/20/2014 10
10001 6/20/2014 10
10002 6/19/2014 10
10003 6/19/2014 10
10004 6/18/2014 10
10002 6/19/2014 10
Want to create this table:
Row Labels Date Sum of Amount
10001 6/20/2014 20
10002 6/19/2014 20
10002 6/20/2014 10
10003 6/19/2014 10
10003 6/20/2014 10
10004 6/18/2014 10
10004 6/20/2014 10