I need to format numbers in mySQL so that they are rounded to 0 decimal places and also have the commas in the right place. (ie: 24351.0433 -> 24,351) Unfortunately, FORMAT() returns a string so when it is sorted asc/desc it treats it like it is text. (ie: 30,25,8 would be sorted ascending as 25,30,8)
ROUND() worked well except it did not insert the commas for the thousands place. Any thoughts?