how many different cities are there?
select count(distinct city_code) from student
find the number of students living in each city.
select count(*), city_code from student group by city_code
also find the average age of students living in each city.
select count(*), avg(age), city_code from student group by city_code