(1)建立一个视图V-SSC(SNO,SN,CNO,CN,G),并按课程号CNO升序排序。(2)从视图V-SSC上查询平均成绩在90分以上的学生姓名SN、课程名CN和成绩G。.(1)CREATE VIEW V-SSC(SNO,SN,CNO,CN,G)
.(1)CREATE VIEW V-SSC(SNO,SN,CNO,CN,G) AS SELECT S.SNO,S.SN,CNO,SC.CN,SC,G FROM S,SC WHERE S.SNO=SC.SNO ORDER BY CNO ASC; (2)SELECT SN,CN,G FROM V-SSC GROUP BY SNO HA VING AVG(G)>90; 设有教学数据库中有三个关系:S(S#,SNAME,AGE,SEX)SC(S#,C#,GRADE)C(C#,CNAME,TEACHER)利用关系代数表达式,SQL语句表示下列查询操作: