I need to find out the busiest location by check in for a query.
select name
from checkin join location on checkin.locid = location.LocID
order by name
This query gives me the result but I cannot figure how to group it by numbers. If I put count (distinct name) it gives a weird result and if I group by name it does not give me the numbers
I am trying to group the names and the amount of times it has come in two separate columns?