Q&A about the site for administrators, end users, developers and designers for Craft CMS
SELECT CEILING(Score/5)*5 AS Rounded, COUNT(CEILING(Score/5)*5) AS Counted FROM Posts GROUP BY CEILING(Score/5)*5 ORDER BY CEILING(Score/5)*5 DESC