create view se1(s_sno,s_sname,c_num,s_avg_grade)
as select sc.sno,s.sname,count(cno),avg(grade)
from s,sc
where s.sno=sc.sno
group by sno,cno
提示说:列名 'sno' 不明确。
------解决方案--------------------
create view se1(s_sno,s_sname,c_num,s_avg_grade)
as select sc.sno,s.sname,count(cno),avg(grade)
from s,sc
where s.sno=sc.sno
group by sc.sno,cno
------解决方案--------------------