I've got the following Problem (or maybe just a thinking barrier):
I've got a table (actually a view from a table) with the following columns and data:

Now i want to Group this data by the column "Customer" and get the "CompetitorName" with the highest "CompetitorCount". Of course i can create a query like this:
SELECT Customer, MAX(CompetitorCount) FROM MyTable GROUP BY Customer
This will return two rows:
Foo; 12
Bar; 7
But i wont be able to get the CompetitorName that way. If I include it into the group by section, the "Customer" will show up multiple times. Otherwise I have to use an aggregate function to select which "CompetitorName" I want to use, but of course MAX doesnt work.
I'm sure this can be done somehow, but at the moment i've got no idea how.
Thanks in advance for any help.