I’ve typed out the query below and I get a syntax error after the first when of the the CASE part. Please help correct.
SELECT state.name, country.name, AVG(state_weather_stats.humidity) AS average_monthly_humidity,
CASE AVG(state_weather_stats.temperature)
WHEN >=0 AND < 15 THEN “COLD”
WHEN >= 15 AND <30 THEN “WARM”
ELSE “HOT”
END AS weather_type