How do I create a GROUP BY and ORDER BY count descending?
select login_id, count(login_id) as count from table group by login_id order by count desc