I have a table with the following structure:
Cliente_id | credito | debito | pedido
1 100 1
1 150 1
1 30 1
2 200 2
2 180 2
How to make a Select the result look like below?
Cliente_id | credito | debito | pedido
1 130 150 1
2 180 200 2
Thank you for your help