I have a table in my database in the following form:
Name   Value  Count
Angus   B   70
Angus   C   2054
Angus   D   418
Betty   B   16
Betty   C   2
Betty   T   37
Betty   E   683
Colin   K   85
Colin   L   297
Colin   M   810
I need to be able to pick the highest count per name and retain the values - I would do this with an order by but the 'Count' column is a count of other unique values within the table so can't do a GROUP By on Count.
Any tips greatly appreciated