Im having a little trouble trying with the count function in SQL.
What I am attempting is to count the amount of people with a certain name
For example:
Name | Number
==============
Ivan | 9
Brody| 8
Ray | 7
And where there are the same instance sort alphabetically.
Any help is much appreciated!
When using
COUNT()which is anAGGREGATE FUNCTIONit needs to haveGROUP BYClause. Try this,or you can just add
ALIASon it