【单选题】查询计算机应用技术专业成绩在80分(包含)以上的学生人数,正确的语句是?A.db.students.find({"major":"计算机应用技术","score":{$gt:80}}).count()B.db.students.find({"major":"计算机应用技术","score":{$gte:80}}).count()C.db.students.find({"major":"计算机应用技术","score":{$gte:80}})D.db.students.find({$or:[{"major":"计算机应用技术"},{"score":{$gte:80}}]}).count()

【单选题】查询计算机应用技术专业成绩在80分(包含)以上的学生人数,正确的语句是?

A.db.students.find({"major":"计算机应用技术","score":{$gt:80}}).count()

B.db.students.find({"major":"计算机应用技术","score":{$gte:80}}).count()

C.db.students.find({"major":"计算机应用技术","score":{$gte:80}})

D.db.students.find({$or:[{"major":"计算机应用技术"},{"score":{$gte:80}}]}).count()


参考答案和解析
管理信息系统;决策支持系统;供应链管理;企业流程重组

相关考题:

如果对关系执行下面的SQL语句:SELECT[’sno,AVG(grade)AS‘平均成绩’FROM scoreGROUP BY sno HAVING AVG(grade)=85,对此结果的正确描述是——。A.查找平均成绩在85分以上的学生B.查找score表中各科成绩在85分以上的学生C.查找score表中平均成绩在85分以上的学生的学号和平均成绩D.查找score表中各科成绩在85分以上的学生的学号和平均成绩

关系模式SCS(Sno,Cno,Score)中,Sno是学生学号,Cno是课程号,Score是成绩。若要查询每门课成绩的平均成绩,且要求查询结果按平均成绩升序排列,平均成绩相同时,按课程号降序排列,可用SQL语言写为(33)。若查询结果仅限于平均分数超过85分的,则应(34)。(51)A.SELECT Cno,AVG(Score)FROM SCS GROUP BY Score ORDER BY 2.Cno DESCB.SELECT Cno,AVG(Score) FROM SCS GROUP BY Cno ORDER BY 2.Cno DESCC.SELECT Cno,AVG(Score) FROM SCS ORDER BY Cno DESC ORDER BY ScoreD.SELECT Cno,AVG(Score) FROM SCS GROUP BY AVG(Score)ORDER BY Cno DESC

关系SC(S,SNAME,SEX,SCORE,CNAME),从关系SC中检索男生(SEX =M)并且成绩大于等于60的学生姓名,下述表示( )是正确的。Ⅰ.ЛSNAME(σSCORE>60□SEX='M'(SC))Ⅱ.σSCORE>=60□SEX='M'(ЛSNAME(SC))Ⅲ.ЛSNAME(σSCORE>=60□SEX='M'(ЛSNAME,SCORE,SEX(SC))A.Ⅰ和ⅡB.ⅡC.Ⅰ和ⅢD.Ⅰ

已知学生关系模式为S(Sno,Sname,Major),其属性分别代表学生的学号、姓名和专业名。要查询专业名中含有“计算机”的学生总数,可使用语句:SELECT(23)FROM SWHERE(24)A.SnoB.SUM(Sno)C.MAX(Sno)D.COUNT(Sno)

查询选修课程在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

在学生成绩表SM中,查找成绩>=90(其中“SCORE”为字段名)的学生名单的SQL-SELECT语句中,应加上______选项。A.FOR SCORE>=90B.WHILE SCORE>=90C.WHERE SCORE>=90D.ORDER SCORE>=90

有关系SC(S-ID,C-ID,AGE,SCORE),查找成绩大于60分的学生的学号和成绩,用如下的关系代数表达式表示正确的是(其中Л为投影操作符,为选择操作符)( )。Ⅰ.ЛS-ID,SCORE(σSCORE>60(SC))Ⅱ.σSCORE>60(ЛS-ID)SCORE(SC))Ⅲ.ЛS-ID,SCORE(σSCORE,60(ЛS-ID,SCORE,AGE(SC)A.只有Ⅰ正确B.Ⅰ、Ⅲ正确C.Ⅰ、Ⅱ正确D.都正确

下列程序段的执行结果为 a=75 If a > 60 Then Score=1 If a > 70 Then Score=2 If a > 80 Then Score=3 If a > 90 Then Score=4 Print "Score= ";ScoreA.Score=1B.Score=2C.Score=3D.Score=4

列出计算机应用技术专业的全部学生的学号、姓名和年级。

成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。A.selectmax(score)fromgradeB.Selectrrun(score)fromgradeC.selecttop1scorefromgradeorderbyscoreascD.selecttop1scorefromgradeorderbyscoredesc

在计算机应用技术中,计算机辅助制造可表示为()。ACADBCAICCAMDCMI

在ORM查询中,对于分数模型Score,包含math_score,english_score,chinese_score,username四个字段,如果以math_score优先,english_score为次优先进行排序?()A、Score.objects.all().order_by(’math_score’).order_by(’english_score’)B、Score.objects.all().order_by(’english_score’).order_by(’math_score’)C、Score.objects.all().order_by(’english_score’,’math_score’)D、Score.objects.all().order_by(’math_score’,’english_score’)

截至2008年9月,淮南师范学院与澳大利亚北墨尔本高等技术学院的合作办学项目已经成功招收四届学生共()人。且开设()、()(金融服务)、()(网络建设)三个专业。A、300;电子商务;会计;计算机应用技术B、400;会计学;电子商务;计算机应用技术C、500;电子商务;会计;计算机应用技术D、500;电子商务;会计学;计算机应用技术

成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。(选择两项)A、select max(score) from gradeB、select top 1 score from grade order by score ascC、Select min(score) from gradeD、select top 1 score from grade order by score desc

学生成绩表grade中有字段score(float),现在要把所有在55至60分之间的分数提高5分,以下SQL语句正确的是()。A、Update grade set score=score+5 where score in 55..60B、Update grade set score=score+5 where score =55 AND score =60C、Update grade set score=score+5 where score between 55 or 60D、Update grade set score=score+5 where score =55 and score =60

机电一体化技术与计算机应用技术的区别。

计算所有籍贯为河北或邯郸的学生的平均成绩,并将结果赋予变量score中,应使用命令()。A、AVERAGE 成绩 TO score FOR籍贯=“河北” AND 籍贯=“邯郸”B、AVERAGE 成绩 TO score FOR籍贯=“河北” OR 籍贯=“邯郸”C、AVERAGE 成绩 TO score FOR籍贯=“河北” AND “邯郸”D、AVERAGE 成绩 TO score FOR籍贯=“河北”OR “邯郸”

学生成绩表grade中有字段score(float),现在要把所有在55分至60之间的分数提高5分,以下sql语句正确的是()A、Update grade set score=score+5B、Update grade set score=score+5 where score=55 or score =60C、Update grade set score=score+5 where score between 55 and 60D、Update grade set score=score+5 where score =55 and score =60

若要将“s_c_info”表中所有学生的成绩“score”加5分,则正确的SQL语句是()A、UPDATE s_c_info SET score=5B、UPDATE s_c_infoSET score=score+5C、UPDATE FROM s_c_info SET score=5D、UPDATE FROM s_c_info SET score=score+5

成绩表grade中字段st_id代表学号,score代表分数,以下()语句返回成绩表中的最低分。A、SELECT max(score) FROM gradeB、SELECT TOP 1 score FROM grade ORDERBY score ASCC、SELECT st_id,MIN(score) FROM gradeD、SELECT TOP 1 score FROM grade ORDERBY score DESC

单选题学生成绩表grade中有字段score(float),现在要把所有在55至60分之间的分数提高5分,以下SQL语句正确的是()。AUpdate grade set score=score+5 where score in 55..60BUpdate grade set score=score+5 where score =55 AND score =60CUpdate grade set score=score+5 where score between 55 or 60DUpdate grade set score=score+5 where score =55 and score =60

单选题The score of the Holmes-Rahe test shows _____.Abow much pressure you are underBhow positive events can change your lifeChow stressful a major event can beDhow you can deal with life changing events

单选题成绩表grade中字段st_id代表学号,score代表分数,以下()语句返回成绩表中的最低分。ASELECT max(score) FROM gradeBSELECT TOP 1 score FROM grade ORDERBY score ASCCSELECT st_id,MIN(score) FROM gradeDSELECT TOP 1 score FROM grade ORDERBY score DESC

单选题若要将“s_c_info”表中所有学生的成绩“score”加5分,则正确的SQL语句是()AUPDATE s_c_info SET score=5BUPDATE s_c_infoSET score=score+5CUPDATE FROM s_c_info SET score=5DUPDATE FROM s_c_info SET score=score+5

单选题查询选修课程在5门以上(含5门)的学生的学号、姓名和平均成绩,并按平均成绩降序排序,正确的命令是(  )。ASELECT s.学号,姓名,平均成绩FROM student s.score scWHERE s.学号=sc.学号GROUP BY s.学号HAVING COUNT(*)=5 ORDER BY平均成绩DESCBSELECT学号,姓名,AVG(成绩)FROM student s,score scWHERE s.学号=sc.学号AND COUNT(*)=5GROUP BY学号ORDER BY 3 DESCCSELECT s.学号,姓名,AVG(成绩)平均成绩FROM student s,score soWHERE s.学号=sc.学号AND COUNT(*)=5GROUP BY s.学号ORDER BY平均成绩DESCDSELECT s.学号,姓名,AVG(成绩)平均成绩FROM student s,score scWHERE s.学号=sc.学号GROUP BY s.学号HAVING COUNT(*)=5 ORDER BY 3 DESC

多选题成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。Aselect max(score)from gradeBselect top1score from grade order by score ascCSelect min(score)fromgradeDselect top1score from grade order by score desc

多选题成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。Aselect max(score) from gradeBselect top 1 score from grade order by score ascCSelect min(score) from gradeDselect top 1 score from grade order by score desc

单选题计算所有籍贯为河北或邯郸的学生的平均成绩,并将结果赋予变量score中,应使用命令()。AAVERAGE 成绩 TO score FOR籍贯=“河北” AND 籍贯=“邯郸”BAVERAGE 成绩 TO score FOR籍贯=“河北” OR 籍贯=“邯郸”CAVERAGE 成绩 TO score FOR籍贯=“河北” AND “邯郸”DAVERAGE 成绩 TO score FOR籍贯=“河北”OR “邯郸”