Posts by Pastor • 36 points
1 post
-
2
votes4
answers1133
viewsA: Return a sum in separate rows in mysql
Replace column and table names: select sum(case when operacao='01' then valor else 0 end) deposito, sum(case when operacao='02' then valor else 0 end) retirada, sum(case when operacao='01' then…