I currently have a table like below
Name | Season | count(*) |
---|---|---|
Name1 | 2020 | 2 |
Name2 | 2020 | 3 |
Name3 | 2020 | 4**** |
Name1 | 2021 | 5** |
Name2 | 2021 | 3 |
Name3 | 2021 | 1 |
Name1 | 2022 | 3 |
Name2 | 2022 | 4** |
And I want a table like
Name | Season | count(*) |
---|---|---|
Name3 | 2020 | 4 |
Name1 | 2021 | 5 |
Name2 | 2022 | 4 |
I've tried using
select max(count(*)) from ~~
, and I found that it's not gonna work. Can you guys give me some adivice?