学生成绩表student中有字段姓名name,课程lesson,分数score。
1. 写一个SQL查询出所有学生成绩并按姓名分组。
select * from student group by name;
2. 写一个SQL查询出成绩在80分以上的学生。
select * from student where score>80;
学生成绩表student中有字段姓名name,课程lesson,分数score。
1. 写一个SQL查询出所有学生成绩并按姓名分组。
select * from student group by name;
2. 写一个SQL查询出成绩在80分以上的学生。
select * from student where score>80;