(1)selectcount(distinct name)from Table1;(2)select name
,sum(score)as"总分"from Table1
groupby name
orderbysum(score)desc;(3)select name
from Table1
groupby name
havingmin(score)<60;(4)select name
from Table1
groupby name
havingmin(score)>60;(5)select name
,sum(score)as"总分"from(select*from Table1
unionselect*from Table2
)tempgroupby name;(6)-- 所有课程超过60分的学生以及他们对应的总分select name
,sum(score)as"总分"from(select*from Table1
unionselect*from Table2
)tempgroupby name
havingmin(score)>60;