• 2022-06-09
    查询选课成绩大于90分的学生的姓名 Select () from student,sc where student.sno=sc.sno and grade>=90
  • sname

    举一反三

    内容

    • 0

      【多选题】针对学生选课数据库S_T,以下()操作实现了student表与sc之间的自然连接。 A. select student.* ,  cno,  grade  from student  join   sc  on  student.sno=sc.sno B. select student.* ,  sc.*  from student ,  sc  where student.sno=sc.sno C. select student.sno, sname, ssex, sage, sdept , cno, grade  from student ,  sc  where student.sno=sc.sno D. select student.* , cno, grade  from student ,  sc  where  student.sno=sc.sno

    • 1

      现有学生表S、课程表C和学生选课表SC,它们的结构如下:[br][/br] S(S#, SN, SEX, AGE, DEPT) C(C#, CN,TEACHER) SC(S#, C#, GRADE) 其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号,CN为课程名,GRADE为成绩。 要查找分数高于90分的学生的学号和姓名的语句为( ) A: select student.sno,sname from student,sc where student.sno=sc.sno and grade>90 B: select student.sno,sname from student,sc where grade>90 C: select sno,sname from sc where grade>90 D: select sno,grade from student where grade>90

    • 2

      ‏下列SQL语句中,_________可以在“学生-课程”数据库正确实现“查询所有选修了1号课程的学生姓名”。‎ A: SELECT SnameFROM Student, SCWHERE SC.Cno= '1' B: SELECT SnameFROM Student, SCWHERE Student.Sno=SC.Sno AND SC.Cno= 1 C: SELECT Sname FROM Student WHERE Sno= (SELECT Sno FROM SC WHERE Cno= '1') D: SELECT Sname FROM Student WHERE EXISTS (SELECT * FROM SC WHERE Sno=Student.Sno AND Cno= '1')

    • 3

      查询所有成绩均大于80分的学生姓名,应执行( )语句 A: SELECT SNAME FROM STUDENT WHERE EXISTS (SELECT *FROM SC WHERE STUDENSNO = SC.SNO AND GRADE> 80); B: SELECT SNAME FROM STUDENT WHERE EXISTS (SELECT *FROM SC WHERE STUDENSNO = SC.SNO AND GRADE C: SELECT SNAME FROM STUDENT WHERE NOT EXISTS (SELECT *FROM SC WHERE STUDENSNO = SC.SNO AND GRADE D: SELECT SNAME FROM STUDENT WHERE NOT EXISTS (SELECT *FROM SC WHERE STUDENSNO = SC.SNO AND GRADE> 80);

    • 4

      查询所有学生的选课信息,结果包括学号,姓名,性别,年龄,选课课程名,成绩 select ,sname,sex,sage,cname,grade from student,course,sc where student.sno=sc.sno and ;