I have a tricky scenario.
Data in the table is as follows
CustomerId Transaction Type Transaction Amount
1 Payment 100
1 payment 200
1 ReversePayment -100
1 ReversePayment -200
I have transnational table with transaction types being "Payment", "ReversePayment". There are multiple records for a customer with some records being Payment and some being ReversePayment.
Is there a way to sort data as follows
CustomerId Transaction Type Transaction Amount
1 Payment 100
1 ReversePayment -100
1 payment 200
1 ReversePayment -200
If any one have a solution, please help.