CODE
SELECT * FROM table ORDER BY (number1 / number2) DESC LIMIT 0,10
I think you can probably guess what I'm trying to do, tis a voting script and I have the total of all the votes plus the number of the votes and I want to order by the average vote amount, if you get me. I've already got a value for the total (average) vote int he DB but its only to one decimal place and thus not practical for ordering (i.e there could be lots of sites that scor 9.1 for example).
Anyone got any ideas? Can this be done?