I would like to sum a column with multiple condition and display all the result in rows
I have a table as
Status Amount
pending 100
Success 50
pending 20
failure 80
success 20
Now I would like to find the total of pending, success and failure as
Pending Success failure
120 70 80
something like
select sum(pending), sum(success), sum(failure) from mytable