I have the below query:
SELECT VoucherId,
PosDateEntered,
SUM(VoucherFaceValue) AS ValueIssued,
SUM(AmountUsed) AS ValueReedeemed,
RVtransactionAmount
FROM [dbo].[LoyaltyVoucherTransactionDetails]
WHERE VoucherId = '2000702'
GROUP BY PosDateEntered, VoucherId, RVtransactionAmount
That returns the below data:
How can I then make this into the below result?
I am using SSMS 2014