select avg(sc.degree) 平均分,sc.cno  课程号 from c,sc where c.no=sc.no and c.class=95033 group by   sc.cno

解决方案 »

  1.   

    --tryselect class,avg(degree),cno from 
    (
        select s.class,s.no,sc.cno,sc.degree from s,sc where s.no=sc.no
    )
    group by class,cno;
      

  2.   

    select avg(sc.degree) 平均分,sc.cno  课程号 from s,sc where c.no=sc.no and s.class=95033 group by   sc.cno
      

  3.   

    ORARichard(没钱的日子......) 兄很快的說
    我同意的很