当前位置: X题卡 > 所有题目 > 题目详情

关系SC(Sno,Cno,Grade)表示学号,课程号,成绩。现要查询平均分在90分以上的学生的学号和平均成绩,正确的语句是______。

查看本题答案

你可能感兴趣的试题

INSERT INTO SC(SNO,CNO,GRADE)VALUES(′S1 01′,′C11′,′98′)  INSERT INTO SC(SNO,CNO,GRADE)VALUES(S101,C11,98)  INSERT(′S101′,′C11′,′98′)INTO SC  INSERT INTO SC VALUES(′S101′,′C11′,98)  
(Sno,Sname,Cno,Tname,Taddr),(Sno,Sname,Cno,Cname,Grade)∈1NF  (Sno,Sname),(Sno ,Cno ,Grade,Tname,Taddr),(Cno,Cname)∈2NF  (Sno ,Sname),(Sno ,Cno ,Grade),(Tname,Taddr),(Cno ,Cname,)∈3NF  (Sno,Sname),(Sno,Cno,Grade),(Tname,Taddr),(Tname,Cno),(Cno,Cname)∈BCNF  
SELECT Sno,MAX(Grade) FROM SC WHERE MAX(Grade)>=91 GROUP BY Sno  SELECT Sno,MAX(Grade) FROM SC GROUP RY Sno HAVING MAX(Grade)>=91  SELECT Sno,MAX(Grade) FROM SC WHERE MAX(Grade)>=91 ORDER BY Sno  SELECT Sno,MAX(Grade) FROM SC GROUP BY Cno HAVING MAX(Grade)>=91  
INSERT INTO SC(SNO,CNO,GRADE)VALUES(′S1 01′,′C11′,′98′)  INSERT INTO SC(SNO,CNO,GRADE)VALUES(S101,C11,98)  INSERT(′S101′,′C11′,′98′)INTO SC  INSERT INTO SC VALUES(′S101′,′C11′,98)  
SELECT SNO FROM SC WHERE CNO=′DB′AND GRADE DETWEEN 60 AND 90  SELECT SNO FROM SC WHERE CNO=′DB′OR GRADE BETWEEN 60 AND 90  SELECT SNO FROM SC WHERE CNO=′DB′AND GRADE>=60 AND 90  SELECT SNO FROM SC WHERE CNO=′DB′AND GRADE<=60 AND GRADE>=90  
INSERT INTO SC(SNO, CNO, GRAD VALUES('S101', 'C11', '98')  INSERT INTO SC(SNO, CNO, GRAD VALUES(S101, C11, 98)  INSERT('Sl01', 'C11', '98')INTO SC  INSERT INTO SC VALUES('S101', 'C11', 98)  
INSERT INTO SC(SNO,CNO,GRADE)VALUES(’S101’,’C11’,’98’)  INSERT INTO SC(SNO,CNO,GRADE)VALUES(S101,C11,98)  INSERT(’S101’,’C11’,’98’)INTO SC  INSERT INTO SC VALUES(’S101’,’C11’,98)  
SELECT Sno,AVG(Grade) FROM SC WHERE AVG(Grade)>=90 GROUP BY Sno  SELECT Sno,AVG(Grade) FROM SC GROUP BY Sno HAVING AVG(Grade)>=90  SELECT Sno,AVG(Grade) FROM SC WHERE AVG(Grade)>=90 ORDER BY Sno  SELECT Sno,AVG(Grade) FROM SC GROUP BY Cno HAVING AVG(Grade)>=90  
SC AVG(Grade.  SC AVG(DISTINCT Grade.  AVG(Grade. FROM SC  SCAVG(DISTINCT Grade. FROM SC  
(Sno,Sname,Cno,Tname,Taddr),(Sno,Sname,Cno,Cname,Grade))∈1NF  (Sno,Sname),(Sno,Cno,Grade,Tname,Taddr),(Cno,Cname))∈2NF  (Sno,Sname),(Sno,Cno,Grade),(Tname,Taddr),(Cno,Cname))∈3NF  f(Sno,Sname),(Sno,Cno,Grade),(Tname,Taddr),(Tname,Cno),(Cno,Cname))∈BCNF  
SC AVG(Grade)  SC AVG(DISTINCT Grade)  AVG(Grade) FROM SC  SCAVG(DISTINCT Grade) FROM SC  
SELECT SNO FROMSC WHERE CNO=’DB’ AND GRADE BETWEEN 60 AND 90  SELECT SNO FROM SC WHERE CNO=’DB’ OR GRADE BETWEEN 60 AND 90  SELECT SNO FROM SC WHERE CNO=’DB’ AND GRADE>=60 AND 90  SELECTSNO FROM SCWHERECNO=’DB’ AND GRADE<=60 AND GRADE>=90  

热门试题

更多