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

设关系模式SCG (S#, C#, grade)中S#为学生学号,C#为课程号,grade为某学号学生学某号课程的考试成绩。今要查询每门课程的平均成绩,且要求查询的结果按平均成绩升序排...

查看本题答案

你可能感兴趣的试题

SELECT sno FROM sc WHERE sname="数据库"AND grade=MAX(grad  SELECT sno FROM sc FOR sname="数据库"OR grade>=MAX(grad  SELECT sno FROM sc WHERE sname="数据库"AND grade=(SELECT MAX(grad FROM s  SELECT sno FROM sc FOR sname="数据库"OR grade=(SELECT MAX(grad FROM s  
SELECT sno FROM sc WHERE sname="数据库"AND grade=MAX(grad  SELECT sno FROM sc FOR sname="数据库"OR grade>=MAX(grad  SELECT sno FROM sc WHERE sname="数据库"AND grade=(SELECT MAX (grad FROM s  SELECT sno FROM sc FOR sname="数据库" OR grade=(SELECT MAX (grad FROM s  
SELECT S#, SUM(GRAD FROM SC WHERE GRADE>=60 GROUP BY S# ORDER BY 2 DESC HAVING COUNT(*)>=4  SELECT S#, SUM(GRAD FROM SC WHERE GRADE>=60 GROUP BY S# HAVING COUNT(*)>=4 ORDER BY 2 DESC  SELECT S#, SUM(GRAD FROM SC WHERE GRADE>=60 HAVING COUNT(*)>=4 GROUP BY S# ORDER BY 2 DESC  SELECT S#, SUM(GRADFROM SC WHERE GRADE>=60 ORDER BY 2 DESC GROUP BY S# HAVING COUNT(*)>=4  
在Group子名的下一行加入: Having Avg(*)>80  在Group子名的下一行加入: Having AVG(grad>80  在Group子名的下一行加入: Where AVG(grad>80  在Group子名的下一行加入: Where AVG(*)>80  
安全模式已建立情况下,启动重建流程;  安全模式已建立情况下,回 IDLE;  安全模式未建立情况下,启动重建流程;  不重建,触发 SCG failure 后,向MCG上报SCGFailureInformationNRmessage 。  
Select C#,AVG(grade) From SCG Group by grade Order by 2,C# Desc  Select C#,AVG(grade) From SCG Group by C# Order by 2,C# Desc  Select C#,AVG(grade) From SCG Where C#,AVG Desc Group by grade  Select C#,AVG(grade) From SCG Group by AVG(grade) Order by 2,C# Desc  
安全模式已建立情况下,启动重建流程;  安全模式已建立情况下,回 IDLE;  安全模式未建立情况下,启动重建流程;  不重建,触发SCG failure 后,向 MCG上报SCGFailureInformationNRmessage 。  
SELECT Sno,AVG(Grad FROM SC WHERE AVG(Grad>=90 GROUP BY Sno  SELECT Sno,AVG(Grad FROM SC GROUP BY Sno HAVING AVG(Grad>=90  SELECT Sno,AVG(Grad FROM SC WHERE AVG(Grad>=90 ORDER BY Sno  SELECT Sno,AVG(Grad FROM SC GROUP BY Cno HAVING AVG(Grad>=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)  
Select C#,AVG(grad From SCG Group by grade Order by 2,C# Desc  Select C#,AVG(grad From SCG Group by C# Order by 2,C# Desc  Select C#,AVG(grad From SCG Where C#,AVG Desc Group by grade  Select C#,AVG(grad From SCG Group by AVG(grad Order by 2,C# Desc  
(Sno,Sname,Cno,Tname,Taddr),(Sno,Sname,Cno,Cname,Grad为1NF  (Sno,Snam,(Sno,Cno,Grade,Tname,Taddr),(Cno,Cnam为2NF  (Sno,Snam,(Sno,Cno,Grad,(Tname,Taddr),(Cno,Cnam)为3NF  (Sno,Snam,(Sno,Cno,Grad,(Tname,Taddr),(Tname,Cno),(Cno,Cnam为BCNF、  
SELECT sno FROM sc WHERE sname="数据库"AND grade=MAX(grad  SELECT sno FROM sc FOR sname="数据库"OR grade>=MAX(grad  SELECT sno FROM sc WHERE sname="数据库"AND grade=(SELECT MAX(gradFROM s  SELECT sno FROM sc FOR sname="数据库"OR grade=(SELECT MAX(gradFROM s  
{(Sno,Sname,Cno,Tname,Tadd,(Sno,Sname,Cno,Cname,Grad}∈1NF  {(Sno,Snam,(Sno,Cno,Grade,Tname,Tadd,(Cno,Cnam}∈i2NF  {(Sno,Snam,(Sno,Cno,Grad,(Tname,Tadd,(Cno,Cname,)∈3NF  {(Sno,Snam,(Sno,Cno,Grad,(Tname,Tadd,(Tname,Cn,(Cno,Cnam}∈BCNF  
安全模式已建立情况下,启动重建流  安全模式已建立情况下,回 IDLE;  安全模式未建立情况下,启动重建流  不重建,触发 SCG failure后,向MCG上报SCGFailureInformationNRmessage  

热门试题

更多