Hello team,
Here's my table
I'm looking to select the make that has sold the most cars altogether eg in this case volvo with 120 sales.
I've tried
select(@make,groupby(@make,@sales)=MAX(groupby(@make,@sales)))
but it doesn't return the correct make (not sure what logic is at work here).
Anyone has a better way of doing this ?
Thanks !