select teacher.tno,c2.cname,c2.ctimes,sum(c2.ctimes);
from teacher,c2,tc;
where teacher.tno=tc.tno and c2.cno=tc.cno and teacher.tno='1000';
group by c2.ctimes
答案:2_4
set talk off
select teacher.tno,teacher.tname,avg(tc.grade);
from teacher,tc;
where teacher.tno=tc.tno ;
group by teacher.tno;
order by tc.grade
set talk off
close all
return