How would you use SQL window functions to compare each transaction to prior transactions within the same account?