查询选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是( )。A.SELECT S.学号,姓名,平均成绩FROM student s,score sc WHERE S.学号=sc.学号 GROUP BY s.学号HAVING COUNT(*)=5 ORDER BY平均成绩DESCB.SELECT s.学号,姓名,AVG(成绩)FROM student s,score sc WHERE s.学号=SC.学号AND COUNT(*)=5 GRoUP BY学号0RDER BY 3 DESCC.SELECT S.学号,姓名,AVG(成绩)平均成绩FROM student s,score sc WHERE s.学号=SC.学号AND COUNT(*)=5 GROUP BY s.学号ORDER BY平均成绩DESCD.SELECT s.学号,姓名,AVG(成绩)平均成绩FROM student s,score sc WHERE s.学号=sc.学号 GROUP BY s.学号HAVING COUNT(*)=5 0RDER BY 3 DESC

查询选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是( )。

A.SELECT S.学号,姓名,平均成绩FROM student s,score sc WHERE S.学号=sc.学号 GROUP BY s.学号HAVING COUNT(*)>=5 ORDER BY平均成绩DESC

B.SELECT s.学号,姓名,AVG(成绩)FROM student s,score sc WHERE s.学号=SC.学号AND COUNT(*)>=5 GRoUP BY学号0RDER BY 3 DESC

C.SELECT S.学号,姓名,AVG(成绩)平均成绩FROM student s,score sc WHERE s.学号=SC.学号AND COUNT(*)>=5 GROUP BY s.学号ORDER BY平均成绩DESC

D.SELECT s.学号,姓名,AVG(成绩)平均成绩FROM student s,score sc WHERE s.学号=sc.学号 GROUP BY s.学号HAVING COUNT(*)>=5 0RDER BY 3 DESC


相关考题:

用SQL语言检索选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是( )。A.SELECT S.学号,姓名,平均成绩 FROM S,SC;WHERE S.学号=SC.学号;GROUP BY S.学号 HAVING COUNT(*)=5 ORDER BY 平均成绩 DESCB.SELECT 学号,姓名,AVG(成绩) FROM S,SC;WHERE S.学号=SC.学号AND COUNT(*)=5;GROUP BY 学号 ORDER BY 3 DESCC.SELECT S.学号,姓名,AVG(成绩) 平均成绩 FROM S,SC;WHERE S.学号=SC.学号AND COUNT(*)=5;GROUP BY S.学号 ORDER BY 平均成绩 DESCD.SELECT S.学号,姓名,AVG(成绩) 平均成绩 FROM S,SC;WHERE S.学号=SC.学号;GROUP BY S.学号 HAVING COUNT(*)=5 ORDER BY 3 DESC

用SQL语言检索选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是A)SELECT S.学号,姓名,平均成绩FROM S,SC; WHERE S.学号=SC.学号; GROUP BY S.学号HAVING GOUNT(*)=5 ORDER BY平均成绩DESCB)SELECT学号,姓名,AVG(成绩)FROM S,SC; WHERE S.学号SC.学号AND COUNT(*)>=5; GROUP BY学号ORDER BY 3 DESCC)SELECT S.学号,姓名,AVG(成绩)平均成绩FROM S,SC; WHERE S.学号=SC.学号AND COUNT(*)=5; GROUP BY S.学号ORDER BY平均成绩DESCD)SELECT S.学号,姓名,AVG(成绩)平均成绩FROM S,SC; WHERE S.学号=SC.学号; GROUP BY S.学号HAVING COUNT(*)=5 ORDER BY 3 DESC

使用如下3个数据库表: 学生表:S(学号,姓名,性别,出生日期,院系) 课程表:C(课程号,课程名,学时) 选课成绩表:SC(学号,课程号,成绩) 在上述表中,出生日期数据类型为日期型,学时和成绩为数值型,其他均为字符型。用SQL语言检索选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是______。A.SELECTS.学号,姓名,平均成绩FROM S,SC; WHERE S.学号=SC.学号; GROUP BY S.学号HAVING COUNT(*)>=5 ORDER BY平均成绩DESCB.SELECT学号,姓名,AVG(成绩)FROMS,SC; WHERE S.学号=SC.学号AND COUNT(*)>=5; GROUP BY学号ORDER BY 3 DESCC.SELECTS.学号,姓名,AVG(成绩)平均成绩FROM S,SC; WHERE S.学号;SC.学号AND COUNT(*)>=5; GROUP BY S.学号ORDER BY平均成绩DESCD.SELECTS.学号,姓名,AVG(成绩)平均成绩FROMS,SC, WHERE S.学号:SC.学号; GROUP BYS.学号HAVING COUNT(*)7=5 ORDER BY 3 DESC

在关系Student(学号,姓名,系名,课程号,成绩)中,查询至少选修了四门课程的学生学号、姓名及平均成绩的SElECT语句应该是:SELECT学号,姓名,AVC((254))AS平均成绩FROM StudentCROUP BY学号HAVING (255)A.成绩B.姓名C.系名D.课程号

用SQL语句检索选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是( )。

查询选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是A.SELECT s.学号,姓名,平均成绩FROM student s,score sc WHERE s.学号=sc.学号 GROUP BY s.学号HAVING COUNT(*)=5 ORDER BY平均成绩DESCB.SELECT学号,姓名,AVG(成绩)FROM student s,score sc WHERE s.学号=sc.学号AND COUNT(*)=5 GR0UP BY学号ORDER BY 3 DESCC.SELECT s.学号,姓名,AVG(成绩)平均成绩FROM student s,score sc wHERE s.学号=sc.学号AND COUNT(*)=5 GROUP BY s.学号ORDER BY平均成绩DESCD.SELECT s.学号,姓名,AVG(成绩)平均成绩FROM student s,score sc WHERE s.学号=sc.学号 GROUP BY s.学号HAVING COUNT(*)=5ORDER BY 3 DESC

用SQL语言检索选修课程在5门以上(含5门)的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是A.SELECT S.学号,姓名,平均成绩FROM S,SC; WHERE S.学号=SC.学号; GROUP BY S.学号 HAVING COUNT(*)>=5 ORDER BY 平均成绩 DESCB. SELECT 学号,姓名,AVG(成绩)FROM S,SC; WHERE S.学号=SC.学号AND COUNT(*)>=5; GROUP BY 学号 ORDER BY 3 DESCC.SELECT S.学号,姓名,AVG(成绩)平均成绩 FROM S,SC; WHERE S.学号=SC.学号AND COUNT(*)>=5; GROUP BY S.学号 ORDER BY平均成绩 DESCD.SELECT S.学号,姓名,AVG(成绩)平均成绩 FROM S,SC; WHERE S.学号;SC,学号; GROUP BY S.学号 HAVING COUNT(*)>=5 ORDER BY 3 DESC

用SQL语句检索选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是( )。A)SELECT S.学号,姓名,平均成绩FROM S,SC;WHERE S.学号=SC.学号;GROUP BY S.学号HAVING COUNT(﹡)=5 0RDER BY平均成绩DESCB)SELECT学号,姓名,AVG(成绩)FROM S,SC;WHERE S.学号=SC.学号AND COUNT(﹡)=5;GROUPBY学号ORDERBY 3 DESCC)SELECT S.学号,姓名,AVG(成绩)平均成绩FROM S,SC;WHERE S.学号=SC.学号AND COUNT(﹡)=5;GROUP BY S.学号ORDER BY平均成绩DESCD)SELECT S.学号,姓名,AVG(成绩)平均成绩FROM S,SC;WHERE S.学号=SC.学号;GROUP BY S.学号HAVING COUNT(﹡)=5 0RDER BY 3 DESC

4、已知关系模式: 学生表:S(学号,姓名,性别,出生日期,院系) 课程表:C(课程号,课程名,学时) 选课成绩表:SC(学号,课程号,成绩) 用SQL语言检索选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是()。A.SELECT s.学号,姓名,平均成绩 FROM s JOIN sc ON s.学号 = sc.学号 GROUP BY s.学号 HANVING COUNT(*)>=5 ORDER BY 平均成绩 DESCB.SELECT 学号,姓名,AVG(成绩) 平均成绩 FROM s JOIN sc ON s.学号 = sc.学号 WHERE COUNT(*)>=5 GROUP BY 学号 ORDER BY 平均成绩 DESCC.SELECT s.学号,姓名,AVG(成绩) 平均成绩 FROM s CROSS JOIN sc WHERE s.学号 = sc.学号 AND COUNT(*) >= 5 GROUP BY s.学号 ORDER BY 平均成绩 DESCD.SELECT s.学号,姓名,AVG(成绩) 平均成绩 FROM s JOIN sc ON s.学号 = sc.学号 GROUP BY s.学号,姓名 HANV