;
insert into student values(0,'2024-02-25 10:10:10','龙姑娘','123',
'15612345678',22,'女','我想过过过儿过过的日子。'...;
insert into student values(0,'2024-02-25 10:10:10','杨逍','123',
'15612345678',27,'男','杨过跟程英的大儿子。')...;
insert into student (userName,age,introduce)values('黄衣女子',26,'杨过与龙姑娘的大女儿。')...',
sum(score) '科目总分',
count(score) '科目考试人数',
avg(score) '科目平均分'
from result
where studentId<4 # 基础筛选...group by testName # 分组操作
HAVING avg(score)>60 # 分组后筛选
ORDER BY avg(score) desc; # 根据平均分倒序排列