I have a table similar to the example below.
Field1 Field2
Chris 100
Chris 200
John 50
Maria 250
John 80
I want to achieve the result shown below.
Chris 300
John 130
Maria 250
I've already achieved this by using 2 separate sql statements. I'm wondering if it can be achieved in a single SQL statement to speed up querying. Thank you very much.