查询选课门数大于3门的同学学号,姓名, 选课门数Select ______________from student s, scwhere s.sno=sc.sno group by __________having _____________ A: sno, sname, count(*) ; sno, sname; count(*)>3 B: sno, sname, count(*) ; sno; count(*)>3 C: sno, sname, count(cno) ; sno; count(cno)>3 D: sno, sname, count(sno) ; sno; count(sno)>3
查询选课门数大于3门的同学学号,姓名, 选课门数Select ______________from student s, scwhere s.sno=sc.sno group by __________having _____________ A: sno, sname, count(*) ; sno, sname; count(*)>3 B: sno, sname, count(*) ; sno; count(*)>3 C: sno, sname, count(cno) ; sno; count(cno)>3 D: sno, sname, count(sno) ; sno; count(sno)>3
在“学生-选课-课程”数据库中的三个关系如下: S(SNO,SNAME,SEX,AGE), SC(SNO,CNO,GRADE), C(CNO,CNAME,TEACHER)。 查找选修“数据库技术”这门课的学生的学生姓名和成绩。若使用连接查询的SQL语句是:SELECT SNAME,GRADE FROM S,SC,C WHERE( )。 A: CNAME=“数据库技术”AND S.SNO=SC.SNO AND SC.CNO=C.CNO B: CNAME=“数据库技术”AND S.SNO=SC.SNO AND SC.CNO=CNO C: CNAME=数据库技术AND S.SNO=SC.SNO AND SC.CNO=C.CNO D: CNAME=“数据库技术”AND S.SNO=SC.SNO
在“学生-选课-课程”数据库中的三个关系如下: S(SNO,SNAME,SEX,AGE), SC(SNO,CNO,GRADE), C(CNO,CNAME,TEACHER)。 查找选修“数据库技术”这门课的学生的学生姓名和成绩。若使用连接查询的SQL语句是:SELECT SNAME,GRADE FROM S,SC,C WHERE( )。 A: CNAME=“数据库技术”AND S.SNO=SC.SNO AND SC.CNO=C.CNO B: CNAME=“数据库技术”AND S.SNO=SC.SNO AND SC.CNO=CNO C: CNAME=数据库技术AND S.SNO=SC.SNO AND SC.CNO=C.CNO D: CNAME=“数据库技术”AND S.SNO=SC.SNO
有关系S(SNO, SNAME, SAGE),C(CNO, CNAME),SC(SNO, CNO, GRADE)。其中SNO是学生号,SNAME是学生姓名,SAGE是学生年龄, CNO是课程号,CNAME是课程名称,GRADE是成绩。以下( )SQL语句可以实现查询选修了'C002'号课程的学生姓名。 A: SELECT SNAME FROM S, SC WHERE S.SNO=SC.SNO AND CNO='C002' B: SELECT SNAME FROM S WHERE SNO IN (SELECT SNO FROM SC WHERE CNO='C002') C: SELECT SNAME FROM S WHERE SNO = (SELECT SNO FROM SC WHERE CNO='C002') D: SELECT SNAME FROM S WHERE SNO NOT IN (SELECT SNO FROM SC WHERE CNO='C002')
有关系S(SNO, SNAME, SAGE),C(CNO, CNAME),SC(SNO, CNO, GRADE)。其中SNO是学生号,SNAME是学生姓名,SAGE是学生年龄, CNO是课程号,CNAME是课程名称,GRADE是成绩。以下( )SQL语句可以实现查询选修了'C002'号课程的学生姓名。 A: SELECT SNAME FROM S, SC WHERE S.SNO=SC.SNO AND CNO='C002' B: SELECT SNAME FROM S WHERE SNO IN (SELECT SNO FROM SC WHERE CNO='C002') C: SELECT SNAME FROM S WHERE SNO = (SELECT SNO FROM SC WHERE CNO='C002') D: SELECT SNAME FROM S WHERE SNO NOT IN (SELECT SNO FROM SC WHERE CNO='C002')
设有关系S(SNO,SNAME,SEX),C(CNO,CNAME),SC(SNO,CNO,GRADE)。其中SNO为学生号,SNAME为学生姓名,SEX为性别,CNO为课程号,CNAME为课程名。要查询选修“计算机”课的全体女学生姓名的SQL语句是SELECTSNAMEFROMS,C,SC WHERE子句。这里WHERE子句的内容是 A: S.SNO=SC.SNO andSEX=’女’andCNAME=’计算机’ B: S.SNO=SC.SNO andC.CNO=SC.CNO andCNAME=’计算机’ C: SEX=’女’andCNAME=’计算机’ D: S.SNO=SC.SNO andC.CNO=SC.CNO andSEX=’女’andCNAME=’计算机’
设有关系S(SNO,SNAME,SEX),C(CNO,CNAME),SC(SNO,CNO,GRADE)。其中SNO为学生号,SNAME为学生姓名,SEX为性别,CNO为课程号,CNAME为课程名。要查询选修“计算机”课的全体女学生姓名的SQL语句是SELECTSNAMEFROMS,C,SC WHERE子句。这里WHERE子句的内容是 A: S.SNO=SC.SNO andSEX=’女’andCNAME=’计算机’ B: S.SNO=SC.SNO andC.CNO=SC.CNO andCNAME=’计算机’ C: SEX=’女’andCNAME=’计算机’ D: S.SNO=SC.SNO andC.CNO=SC.CNO andSEX=’女’andCNAME=’计算机’
实现“查询学生及其选课情况(基于左外连接)”的SELECT语句为()。A.SELECT S.*, C.* FROM Student S JOIN SC ON S.Sno=SC.SnoB.SELECT S.*, C.* FROM Student S LEFT JOIN SC ON S.Sno=SC.SnoC.SELECT S.*, C.* FROM Student S, SC WHERE S.Sno=SC.SnoD.SELECT S.*, C.* FROM Student S OUTER JOIN SC ON S.Sno=SC.Sno
实现“查询学生及其选课情况(基于左外连接)”的SELECT语句为()。A.SELECT S.*, C.* FROM Student S JOIN SC ON S.Sno=SC.SnoB.SELECT S.*, C.* FROM Student S LEFT JOIN SC ON S.Sno=SC.SnoC.SELECT S.*, C.* FROM Student S, SC WHERE S.Sno=SC.SnoD.SELECT S.*, C.* FROM Student S OUTER JOIN SC ON S.Sno=SC.Sno
有如下的SQL语句.Ⅰ. SELECT sname FROM s, sc WHERE gradeⅡ. SELECT sname FROM s WHERE sno IN(SELECT sno FROM sc WHERE gradeⅢ. SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有哪些?( ) 。 A: Ⅰ和Ⅱ B: Ⅰ和Ⅲ C: Ⅱ和Ⅲ D: Ⅰ、Ⅱ和Ⅲ
有如下的SQL语句.Ⅰ. SELECT sname FROM s, sc WHERE gradeⅡ. SELECT sname FROM s WHERE sno IN(SELECT sno FROM sc WHERE gradeⅢ. SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有哪些?( ) 。 A: Ⅰ和Ⅱ B: Ⅰ和Ⅲ C: Ⅱ和Ⅲ D: Ⅰ、Ⅱ和Ⅲ
设有关系S(SNO, SNAME, SEX), C(CNO, CNAME), SC(SNO, CNO, GRADE)。其中SNO为学生号,SNAME为学生姓名,SEX为性别,CNO为课程号,CNAME为课程名。要查询选修“计算机”课的全体女学生姓名的SQL语句是SELECTSNAME FROM S, C, SC WHERE子句。这里WHERE子句的内容是______。 A: S.SNO=SC.SNO and SEX=‘女’and CNAME=‘计算机’ B.S.SNO=SC.SNO and B: CNO=SC.CNO and CNAME=‘计算机’ C: SEX=‘女’and CNAME=‘计算机’ D: S.SNO=SC.SNO and C.CNO=SC.CNO and SEX=‘女’and CNAME=‘计算机’
设有关系S(SNO, SNAME, SEX), C(CNO, CNAME), SC(SNO, CNO, GRADE)。其中SNO为学生号,SNAME为学生姓名,SEX为性别,CNO为课程号,CNAME为课程名。要查询选修“计算机”课的全体女学生姓名的SQL语句是SELECTSNAME FROM S, C, SC WHERE子句。这里WHERE子句的内容是______。 A: S.SNO=SC.SNO and SEX=‘女’and CNAME=‘计算机’ B.S.SNO=SC.SNO and B: CNO=SC.CNO and CNAME=‘计算机’ C: SEX=‘女’and CNAME=‘计算机’ D: S.SNO=SC.SNO and C.CNO=SC.CNO and SEX=‘女’and CNAME=‘计算机’
有关系S(S#,SNAME,SAGE),C(C#,CNAME),SC(S#,C#,GRADE)。若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有?( ) A: SELECT sname FROM s, sc WHERE grade<60 B: SELECT sname FROM s WHERE sno IN(SELECT Cno FROM sc WHERE grade<60) C: SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade<60 D: SELECT sname FROM s, sc WHERE s.sno=sc.sno OR grade<60
有关系S(S#,SNAME,SAGE),C(C#,CNAME),SC(S#,C#,GRADE)。若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有?( ) A: SELECT sname FROM s, sc WHERE grade<60 B: SELECT sname FROM s WHERE sno IN(SELECT Cno FROM sc WHERE grade<60) C: SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade<60 D: SELECT sname FROM s, sc WHERE s.sno=sc.sno OR grade<60
有关系S(S#,SNAME,SAGE),C(C#,CNAME),SC(S#,C#,GRADE)。若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有?( ) A: SELECT sname FROM s, sc WHERE grade<60 B: SELECT sname FROM s WHERE sno IN(SELECT Cno FROM sc WHERE grade<60) C: SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade<60 D: SELECT sname FROM s, sc WHERE s.sno=sc.sno OR grade<60
有关系S(S#,SNAME,SAGE),C(C#,CNAME),SC(S#,C#,GRADE)。若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有?( ) A: SELECT sname FROM s, sc WHERE grade<60 B: SELECT sname FROM s WHERE sno IN(SELECT Cno FROM sc WHERE grade<60) C: SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade<60 D: SELECT sname FROM s, sc WHERE s.sno=sc.sno OR grade<60
有如下的SQL语句:Ⅰ. SELECT sname FROM s, sc WHERE grade<;60Ⅱ. SELECT sname FROM s WHERE sno IN(SELECT sno FROM sc WHERE grade<;60)Ⅲ. SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade<;60若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有哪些?() A: Ⅰ和Ⅱ B: Ⅰ和Ⅲ C: Ⅱ和Ⅲ D: Ⅰ、Ⅱ和Ⅲ
有如下的SQL语句:Ⅰ. SELECT sname FROM s, sc WHERE grade<;60Ⅱ. SELECT sname FROM s WHERE sno IN(SELECT sno FROM sc WHERE grade<;60)Ⅲ. SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade<;60若要查找分数(grade)不及格的学生姓名(sname),则以上正确的有哪些?() A: Ⅰ和Ⅱ B: Ⅰ和Ⅲ C: Ⅱ和Ⅲ D: Ⅰ、Ⅱ和Ⅲ