I have a table something like this:
A 1 john
A 2 jeff
A 4 jill
C 2 jane
C 6 jim
C 8 jason
D 1 julie
D 3 josh
D 5 janet
What I want in the result is the row for each unique entry in the first column (A, C, D) and its largest value in the second. So executing the query on the above table would result in:
A 4 jill
C 8 jason
D 5 janet
Is this possible in a single query? It seems that it should be easy, but I can't see it.
Thanks
edit: Oops, I realized my original 2 column example was trivial.
A 1 john
A 2 jeff
A 4 jill
C 2 jane
C 6 jim
C 8 jason
D 1 julie
D 3 josh
D 5 janet
What I want in the result is the row for each unique entry in the first column (A, C, D) and its largest value in the second. So executing the query on the above table would result in:
A 4 jill
C 8 jason
D 5 janet
Is this possible in a single query? It seems that it should be easy, but I can't see it.
Thanks
edit: Oops, I realized my original 2 column example was trivial.