The table is in the format below
ID | CATEGORIA | QUANTIDADE 1 | A | 23 2 | A | 12 3 | A | 11 1 | B | 15 2 | B | 10
I want a query to return the following table
ID | CATEGORIA | QUANTIDADE 1 | A | 23 1 | B | 15
Ie Id that has the most amount in each category.
Note: Can not be used partition by