I have a table where i want to retrieve the highest values of a category ea:
UserA catA 4
userA catA 200
userA catB 100
UserA catA 50
userB catA 150
userB catC 10
userB catC 300
it should return
userA catA 200
userA catB 100
userB catA 150
userB catC 300
Order by and then take only the highest value. And i wonder what's the best way to do this.