Sorry in advance, I'm not exactly sure how to explain this but I am trying to do this:
I have a table that looks something like this:
id | make | model
1 | iphone | iphone 7
2 | iphone | iphone 8
3 | iphone | iphone 10
4 | samsung | galaxy note 5
5 | samsung | galaxy note 5
6 | samsung | galaxy note 4
7 | iphone | iphone 7
8 | iphone | iphone 7
9 | htc | one
I want the results to look like this:
htc | one | 1
iphone | iphone 7 | 3
samsung | galaxy note 5 | 2
So essentially I only want the count for the most rows for each model while grouping both the make and the model.
Hope that makes some sort of sense to someone. Thank you in advance!