Anda dapat GROUP BY
sebuah experession, sesuatu seperti itu:
SELECT price/50000*50000 AS minPrice,
(price/50000+1)*50000-1 AS maxPrice,
COUNT(*)
FROM table
GROUP BY price/50000;
Anda dapat GROUP BY
sebuah experession, sesuatu seperti itu:
SELECT price/50000*50000 AS minPrice,
(price/50000+1)*50000-1 AS maxPrice,
COUNT(*)
FROM table
GROUP BY price/50000;