No to tak:
Minimalne TMP
$query = "SELECT MIN(wea_history.MaxTemperatureC), wea_city_text.title ".
"FROM wea_history LEFT JOIN wea_city_text ".
"ON wea_history.city_id = wea_city_text.city_id GROUP BY wea_history.MaxTemperatureC, wea_city_text.title ORDER BY wea_history.MaxTemperatureC DESC LIMIT 10";
Maxymalne TMP
$query = "SELECT MAX(wea_history.MaxTemperatureC), wea_city_text.title ".
"FROM wea_history LEFT JOIN wea_city_text ".
"ON wea_history.city_id = wea_city_text.city_id GROUP BY wea_history.MaxTemperatureC, wea_city_text.title ORDER BY wea_history.MaxTemperatureC DESC LIMIT 10";
Średnie TMP
$query = "SELECT avg(wea_history.MaxTemperatureC), wea_city_text.title ".
"FROM wea_history LEFT JOIN wea_city_text ".
"ON wea_history.city_id = wea_city_text.city_id GROUP BY wea_history.MaxTemperatureC, wea_city_text.title ORDER BY wea_history.MaxTemperatureC DESC LIMIT 10";