• 2022-06-07 问题

    关系SC(Sno,Cno,Grade)表示学号,课程号,成绩。现要查询最高分在91分以上的学生的学号和平均成绩,正确的语句是______。 A: SELECT Sno,MAX(Grade) FROM SC WHERE MAX(Grade)>=91 GROUP BY Sno B: SELECT Sno,MAX(Grade) FROM SC GROUP RY Sno HAVING MAX(Grade)>=91 C: SELECT Sno,MAX(Grade) FROM SC WHERE MAX(Grade)>=91 ORDER BY Sno D: SELECT Sno,MAX(Grade) FROM SC GROUP BY Cno HAVING MAX(Grade)>=91

    关系SC(Sno,Cno,Grade)表示学号,课程号,成绩。现要查询最高分在91分以上的学生的学号和平均成绩,正确的语句是______。 A: SELECT Sno,MAX(Grade) FROM SC WHERE MAX(Grade)>=91 GROUP BY Sno B: SELECT Sno,MAX(Grade) FROM SC GROUP RY Sno HAVING MAX(Grade)>=91 C: SELECT Sno,MAX(Grade) FROM SC WHERE MAX(Grade)>=91 ORDER BY Sno D: SELECT Sno,MAX(Grade) FROM SC GROUP BY Cno HAVING MAX(Grade)>=91

  • 2022-06-07 问题

    关系SC(Sno,Cno,Grade)表示学号、课程号、成绩。现要查询最高分在91分以上的学生的学号和平均成绩,正确的语句是______。 A: SELECT Sno,MAX(Grade)<br> FROM SC<br> WHERE MAX(Grade)≥91<br> GROUP BY Sno B: SELECT Sno,MAX(Grade)<br> FROM SC<br> GROUP BY Sno<br> HAVING MAX(Grade)≥91 C: SELECT Sno,MAX(Grade)<br> FROM SC<br> WHERE MAX(Grade)≥91<br> ORDER BY Sno D: SELECT Sno,MAX(Grade)<br> FROM SC<br> GROUP BY Cno<br> HAVING MAX(Grade)≥91

    关系SC(Sno,Cno,Grade)表示学号、课程号、成绩。现要查询最高分在91分以上的学生的学号和平均成绩,正确的语句是______。 A: SELECT Sno,MAX(Grade)<br> FROM SC<br> WHERE MAX(Grade)≥91<br> GROUP BY Sno B: SELECT Sno,MAX(Grade)<br> FROM SC<br> GROUP BY Sno<br> HAVING MAX(Grade)≥91 C: SELECT Sno,MAX(Grade)<br> FROM SC<br> WHERE MAX(Grade)≥91<br> ORDER BY Sno D: SELECT Sno,MAX(Grade)<br> FROM SC<br> GROUP BY Cno<br> HAVING MAX(Grade)≥91

  • 2022-06-07 问题

    在STUDENT和SC关系中,删除SNO以‘91’开头的所有记录。

    在STUDENT和SC关系中,删除SNO以‘91’开头的所有记录。

  • 2022-06-08 问题

    删除触发器tri—Sno的正确命令是——。 A: REMOVETRIGGERtri—Sno B: DROPTRIGGERtri—Sno C: TRUNCATEFRIGGERtri—Sno D: DELETETRIGGERtri—Sno

    删除触发器tri—Sno的正确命令是——。 A: REMOVETRIGGERtri—Sno B: DROPTRIGGERtri—Sno C: TRUNCATEFRIGGERtri—Sno D: DELETETRIGGERtri—Sno

  • 2022-06-19 问题

    下列查询语句中,错误的是()。 A: ASELECT Sno, COUNT(*) FROM SC GROUP BY Sno B: BSELECT Sno FROM SC GROUP BY Sno WHERE COUNT(*)> 3 C: CSELECT Sno FROM SC GROUP BY Sno HAVING COUNT(*)> 3 D: DSELECT Sno FROM SC GROUP BY Sno

    下列查询语句中,错误的是()。 A: ASELECT Sno, COUNT(*) FROM SC GROUP BY Sno B: BSELECT Sno FROM SC GROUP BY Sno WHERE COUNT(*)> 3 C: CSELECT Sno FROM SC GROUP BY Sno HAVING COUNT(*)> 3 D: DSELECT Sno FROM SC GROUP BY Sno

  • 2022-06-19 问题

    下列查询语句中,错误的是()。 A: SELECT Sno, COUNT(*) FROM SC GROUP BY Sno B: SELECT Sno FROM SC GROUP BY Sno WHERE COUNT(*)> 3 C: SELECT Sno FROM SC GROUP BY Sno HAVING COUNT(*)> 3 D: SELECT Sno FROM SC GROUP BY Sno

    下列查询语句中,错误的是()。 A: SELECT Sno, COUNT(*) FROM SC GROUP BY Sno B: SELECT Sno FROM SC GROUP BY Sno WHERE COUNT(*)> 3 C: SELECT Sno FROM SC GROUP BY Sno HAVING COUNT(*)> 3 D: SELECT Sno FROM SC GROUP BY Sno

  • 2022-06-09 问题

    查询选课门数大于3门的同学学号,姓名, 选课门数Select ______________from student s, scwhere s.sno=sc.sno group by __________having _____________ A: sno, sname, count(*) ; sno, sname; count(*)&gt;3 B: sno, sname, count(*) ; sno; count(*)&gt;3 C: sno, sname, count(cno) ; sno; count(cno)&gt;3 D: sno, sname, count(sno) ; sno; count(sno)&gt;3

    查询选课门数大于3门的同学学号,姓名, 选课门数Select ______________from student s, scwhere s.sno=sc.sno group by __________having _____________ A: sno, sname, count(*) ; sno, sname; count(*)&gt;3 B: sno, sname, count(*) ; sno; count(*)&gt;3 C: sno, sname, count(cno) ; sno; count(cno)&gt;3 D: sno, sname, count(sno) ; sno; count(sno)&gt;3

  • 2022-10-26 问题

    ​下列SQL语句中,_________可以在“学生-课程”数据库正确实现“将学生的学号及他的平均成绩定义为一个视图”。‎ A: CREAT VIEW S_G(Sno,Gavg) AS SELECT Sno,AVG(Grade) FROM SCGROUP BY Sno; B: CREAT VIEW S_G(Sno,AVG(Grade)) AS SELECT Sno,AVG(Grade) FROM SCGROUP BY Sno; C: CREAT VIEW S_G AS SELECT Sno,AVG(Grade) FROM SCGROUP BY Sno; D: CREAT VIEW S_G(Sno,Gavg) AS SELECT Sno,AVG(Grade) FROM SCORDER BY Sno;

    ​下列SQL语句中,_________可以在“学生-课程”数据库正确实现“将学生的学号及他的平均成绩定义为一个视图”。‎ A: CREAT VIEW S_G(Sno,Gavg) AS SELECT Sno,AVG(Grade) FROM SCGROUP BY Sno; B: CREAT VIEW S_G(Sno,AVG(Grade)) AS SELECT Sno,AVG(Grade) FROM SCGROUP BY Sno; C: CREAT VIEW S_G AS SELECT Sno,AVG(Grade) FROM SCGROUP BY Sno; D: CREAT VIEW S_G(Sno,Gavg) AS SELECT Sno,AVG(Grade) FROM SCORDER BY Sno;

  • 2022-06-09 问题

    在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。查询至少选修了“201815005”同学所选课程的学生的姓名,可以使用如下SQL语句。select sname from student swhere sno&#91;&#93;‘201815005’ and not exists (select * from sc x where x.sno='201815005' and not exists (select * from sc y where y.cno=x.cno and y.sno=s.sno ) )

    在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。查询至少选修了“201815005”同学所选课程的学生的姓名,可以使用如下SQL语句。select sname from student swhere sno&#91;&#93;‘201815005’ and not exists (select * from sc x where x.sno='201815005' and not exists (select * from sc y where y.cno=x.cno and y.sno=s.sno ) )

  • 2022-06-09 问题

    下列 SQL 语句select * from student where sno = '05880101'union select * from student where sno = '05880102'与此查询语句等价的选项是( )。 A: select * from student where sno= '05880101' and sno= '05880102' B: select * from student where sno= '05880101' or sno= '05880102' C: select * from student where sno= '05880101' D: select * from student where sno= '05880102'

    下列 SQL 语句select * from student where sno = '05880101'union select * from student where sno = '05880102'与此查询语句等价的选项是( )。 A: select * from student where sno= '05880101' and sno= '05880102' B: select * from student where sno= '05880101' or sno= '05880102' C: select * from student where sno= '05880101' D: select * from student where sno= '05880102'

  • 1 2 3 4 5 6 7 8 9 10