I have a table with PK CustomerId + type. Each customer has a few types.
For each customer I want to get type which repeated the most for this customer.
I've tried to create a column "count" but I want to get the local maxs, and not a global max for the whole col.
Is there a native way to do so?