I have a table that looks like this:
ID Code Count
A AA 10
A BB 7
B AA 7
B BB 10
C CC 10
C DD 7
I was wondering how I could select each id with the highest count?
I tried using this code as a reference, but am having no luck: Can I do a max(count(*)) in SQL?