I am wanting to list names and the number of times they have done a certain action. I then want to order the names by the most amount of times.
I have the below code so far but I keep getting errors:
select name, count(*) as NoOfTimes
from CustName
group by count(*);
order by count(*) asc;
order by. This seems like a simple typographical error to me.