I have got SQL sub-query result as follows
A B C
1 2 12
1 4 10
1 3 11
2 5 9
2 3 8
4 7 8
4 9 3
Now I have to output values in such a manner for each distinct value in Column A and and for the highest value in column B, I have to return the corresponding value in column C
The output will be
A B C
1 4 10
2 5 9
4 9 3
How can I accomplish this.