Forum Moderators: open
I'm trying to format this to two decimal places but adding FORMAT(mean,2) doesn't seem to work. Any suggestions?
$queryrating = "SELECT table1.title AS label, SUM(table2.rating) AS total, AVG(table2.rating) AS mean FROM table1, table2 WHERE table1.id = table2.id GROUP BY table2.id ";
Thank you in advance