What is the average oldest students with different sex? | Do you mean what is the average age of students? | What is the average and oldest age for students with different sex?
SELECT avg ( age )  ,  max ( age )  ,  sex FROM student GROUP BY sex
average age of students refers to AVG(age); oldest age refers to MAX(age); students with different sex refers to GROUP BY sex;