I have a table like this:
Id | Type | Price | Amount |
---|---|---|---|
4284627 | sell | 307.800000 | 27.390000 |
4284640 | sell | 307.800000 | 2.670000 |
4284681 | buy | 307.600000 | 0.480000 |
4284682 | buy | 307.600000 | 1.960000 |
And I am trying to get following result: 2 rows, sum amount of same prices.
Id | Type | Price | Amount |
---|---|---|---|
4284627 | sell | 307.800000 | 30.06 |
4284681 | buy | 307.600000 | 2.44 |
Can anyone point me to right direction please?