In Django 1.2.3 I need to perform a query like this:
SELECT FLOOR(quantity/100) FROM mytable
is there any way to make it in pure Django style?
Then, a more difficult step:
SELECT FLOOR(quantity/100), count(*)
FROM mytable
GROUP BY FLOOR(quantity/100)
is there any standard solution?