对每个学生的总成绩和平均成绩进行分组,如下:
…
from student inner join sscore;
on student.stuno=sscore.stuno;
group by 1;
order by 3 desc
最后一条命令输入后显示命令中含有不能识别的短语或关键字。
求助,是哪里出错了吗????
3有这一个列的名字没。order by要有现有的列名
请发完整的sql,谢谢
from student inner join sscore;
on student.stuno=sscore.stuno;
group by 1;
order by 3 desc
不用每行都加分号,在语句的结尾加分号即可。