MySQL : AVG of AVG impossible?
问题 I want to do an average : the problem is for 1 item i'm calculating the AVG of each elements ( working ) but as soon as i want the GLOBAL average of the averages of the categories (something and foo) it doesn't work (mysql throw me an error : see the syntax i used just below). I need to do that because i want to sort the result by the global average SELECT AVG(AVG(category1)+AVG(category2)) /2 as moy ..... ORDER BY moy DESC Thanks, edit : I would like to have the average of averages of each