SELECT avg(age) ,  max(age) ,  sex FROM student GROUP BY sex
What is the average and oldest age for each gender of student?
SELECT avg ( age ) , max ( age ) , sex FROM student GROUP BY sex
select avg ( age ) , max ( age ) , sex from student group by sex
What is the average and oldest age for each gender of student ?