--排序select * from emp order by job; --分组select job,max(sal) from emp group by job; --havingselect job,max(sal) from emp group by job having max(sal)>=2000;--按年龄段列举出班上最高分数超过80的年龄段select age,max(score) from student group by age having max(score)>80; --列举班上最大的男生,(用到子查询)select name from student wh...