ID fileName userName
1 abc1 Emre
2 abc2 Abc
3 abc2 John
4 abc1 Rick
5 abc1 Rick
Screen print:
The top downloaded files : 1) abc1 2) abc2
I want to show the most downloaded files. How can I do a mysql query?
(Sorry for Eng)
Get an aggregate
COUNT()grouped byfileName. Sort in descending order by download count, and limit by the number of results you want returned (if necessary).