Solution: Only Keep Interesting Groups
We'll cover the following...
We'll cover the following...
Query
SELECT city, AVG(age) AS avg_ageFROM peopleGROUP BY cityHAVING AVG(age) < 28;
Explanation
This query finds the average age of people in each city, but only shows cities where the average age is less than 28. ...