I have a table looking like this with the following query in SQL
SELECT UpdateDate as DATE ,
Username ,
Request as Type ,
AmountUSD as Amount
FROM tgm.tr_active
where Request in ('Successfull','Declined');
And i would like to run a query and get the following results creating separate columns for eache type with the appropriate values , otherwise the value will be 0 like this :
Is there a way to do that?