设有成绩表stu如下:姓名 科目 分数张三 数学 90张三 语文 50张三 地理 40李四 语文 55李四 政治 45王五 政治 30查询两门及两门以上不及格同学的平均分------------------------1.建表create table stu (name char(2),subject char(2),score tinyint);2.表中添加内容insert into stu values ("张三","数学",90),("张三","语文",50),("张三","地理",40),("李四","语文",55),("李四","政治",45),("王五","政治",30);3.查询两门及两门以上不及格同学的平均分//select name,avg(score) from stu group by name; //select name,sum(score<60) as k from stu group by name;select name,avg(score),sum(score<60) as guake from stu group by name having guake>=2;