Is there a way to specify bin sizes in MySQL? Right now, I am trying the following SQL query:
select total, count(total) from faults GROUP BY total; <
select total, count(total) from faults GROUP BY total;
SELECT CASE WHEN total <= 30 THEN "0-30" WHEN total <= 40 THEN "31-40" WHEN total <= 50 THEN "41-50" ELSE "50-" END as Total, count(*) as count GROUP BY Total ORDER BY Total;