【单选题】检索学生姓名及其所选修课程的课程号和成绩。正确的 SELECT 语句是
A. SELECT S.SN,SC.C#,SC.GRADE FROM S WHERE S.S#=SC.S# B. SELECT S.SN,SC.C#,SC.GRADE FROM SC WHERE S.S#=SC.GRADE C. SELECT S.SN,SC.C#,SC.GRADE FROM S,SC WHERE S . S#=SC . S# D. SELECT S.SN,SC.C#,SC.GRADE FROM S . SC
A. SELECT S.SN,SC.C#,SC.GRADE FROM S WHERE S.S#=SC.S# B. SELECT S.SN,SC.C#,SC.GRADE FROM SC WHERE S.S#=SC.GRADE C. SELECT S.SN,SC.C#,SC.GRADE FROM S,SC WHERE S . S#=SC . S# D. SELECT S.SN,SC.C#,SC.GRADE FROM S . SC
举一反三
- 三个表学生表S、课程表C 和学生选课表 SC,它们的结构如下: S(S#,SN,SEX,AGE,DEPT)<br/>C(C#,CN)<br/>SC(S#,C#,GRADE)<br/>其中:S#为学号,SN 为姓名,SEX 为性别,AGE 为年龄,DEPT 为系别,C#为课程号,CN 为课程名,GRADE 为成绩。<br/>检索学生姓名及其所选修课程的课程号和成绩。正确的 SELECT 语句是( )。 A: SELECT S,SN,SC#,SC.GRADE FROM S WHERE S.S#=SC.S# B: SELECT SN,SC.C#,SC.GRADE FROM SC WHERE S.S#=SC.GRADE C: SELECT SN,SC.C#,SC.GRADE FROM S,SC WHERE S.S#=SC.S D: SELECT SN,SC.C#,SC.GRADE FROM S.SC
- 三个表学生表S、课程表C 和学生选课表<br/>SC,它们的结构如下:<br/>S(S#,SN,SEX,AGE,DEPT)<br/>C(C#,CN)<br/>SC(S#,C#,GRADE)<br/>其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号,CN为课程名,GRADE为成绩。<br/>检索学生姓名及其所选修课程的课程号和成绩。正确的 SELECT 语句是( )。 A: SELECT<br/>S,SN,SC#,SC.GRADE<br/>FROM S WHERE B: SELECT C: SELECT D: SELECT E: S#=SS# F: SN,SC#,SC.GRADE FROM SC WHERE G: S#=SGRADE H: SN,SC#,SC.GRADE FROM S,SC WHERE I: S#=SS# J: SN,SC#,SC.GRADE FROM K: SC
- 假设有三个基本表:学生表S、课程表C、学生选课表SC,它们的结构如下:S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE)检索选修课程”C2”的学生中成绩最高的学生的学号。正确的SELECT语句是( )。 A: SELECT S B: FROM SC WHERE C C: =”C2” AND GRADE>=(SELECT GRADE FROM SC WHERE C D: = “C2”) E: SELECT S F: FROM SC WHERE C G: =”C2” AND GRADE IN (SELECT GRADE FROM SC WHERE C H: = “C2”) I: SELECT S J: FROM SC WHERE C K: =”C2” AND GRADE NOT IN (SELECT GRADE FROM SC WHERE C L: = “C2”) M: SELECT S N: FROM SC WHERE C O: =”C2” AND GRADE>=ALL (SELECT GRADE FROM SC WHERE C P: = “C2”)
- 检索选修课程‘C2’的学生中成绩最高的学生的学号。正确的select语句为( )。 A: select S B: from sc where C C: =‘C2’and grade>= (select grade from sc where C D: =‘C2’) E: select S F: from sc where C G: =‘C2’and grade in (select grade from sc where C H: =‘C2’) I: select S J: from sc where C K: =‘C2’and grade not in (select grade from sc where C L: =‘C2’) M: select S N: from sc where C O: =‘C2’and grade>=all (select grade from sc where C P: =‘C2’)
- 学生表S、课程表C和学生选课表SC,它们的结构如下:S (S#, SN,SEX, AGE, DEPT )C(C#,CN)SC (S#, C#,GRADE)其中,S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号,CN为课程名,GRADE为成绩。检索学生姓名及其所选修课程的课程号和成绩。正确的SELECT语句是 未知类型:{'options': ['SELECT S.SN, SC.C#,SC. GRADEFROM SWHERE S.S#=SC.S#', 'SELECT S.SN, SC.C#, SC. GRADEFROM SCWHERE S. S#=SC. GRADE', 'SELECT S. SN,SC.C#, SC . GRADEFROM S,SCWHERE S.S#=SC.S#', 'SELECT S. SN,SC.C#, SC. GRADEFROM S. SC'], 'type': 102}