查询计算机系任意学生选修过的课程号,不正确的查询语句是: A: SELECT DISTINCT CnoFROM SCWHERE NOT EXISTS (SELECT SnoFROM StudentWHERE Sdept = 'CS'AND SSno = Student.Sno); B: SELECT DISTINCT CnoFROM SCWHERE EXISTS (SELECT SnoFROM StudentWHERE Sdept = 'CS'AND SSno = Student.Sno); C: SELECT DISTINCT CnoFROM SCWHERE Sno IN (SELECT SnoFROM StudentWHERE Sdept = 'CS'); D: SELECT DISTINCT CnoFROM SCLEFT JOIN StudentON SSno = Student.SnoWHERE Sdept = 'CS';
查询计算机系任意学生选修过的课程号,不正确的查询语句是: A: SELECT DISTINCT CnoFROM SCWHERE NOT EXISTS (SELECT SnoFROM StudentWHERE Sdept = 'CS'AND SSno = Student.Sno); B: SELECT DISTINCT CnoFROM SCWHERE EXISTS (SELECT SnoFROM StudentWHERE Sdept = 'CS'AND SSno = Student.Sno); C: SELECT DISTINCT CnoFROM SCWHERE Sno IN (SELECT SnoFROM StudentWHERE Sdept = 'CS'); D: SELECT DISTINCT CnoFROM SCLEFT JOIN StudentON SSno = Student.SnoWHERE Sdept = 'CS';
建立信息系选修了1号课程的学生视图,正确的SQL语句为() A: CREATE VIEW IS_S1 ASSELECT Student.Sno,Sname,Grade FROM Student,SCWHERE Sdept= 'IS' AND Student.Sno=SSno AND SCno= '1'; B: CREATE VIEW IS_S1 (Sno,Sname,Grade) ASSELECT Student.Sno,Sname,Grade FROM Student,SCWHERE Sdept= 'IS' AND SCno= '1'; C: CREATE VIEW IS_S1 (Sno,Sname,Grade) ASSELECT Student.Sno,Sname,GradeFROM Student,SC WHERE Sdept= 'IS' ANDStudent.Sno=SSno AND SCno= '1'
建立信息系选修了1号课程的学生视图,正确的SQL语句为() A: CREATE VIEW IS_S1 ASSELECT Student.Sno,Sname,Grade FROM Student,SCWHERE Sdept= 'IS' AND Student.Sno=SSno AND SCno= '1'; B: CREATE VIEW IS_S1 (Sno,Sname,Grade) ASSELECT Student.Sno,Sname,Grade FROM Student,SCWHERE Sdept= 'IS' AND SCno= '1'; C: CREATE VIEW IS_S1 (Sno,Sname,Grade) ASSELECT Student.Sno,Sname,GradeFROM Student,SC WHERE Sdept= 'IS' ANDStudent.Sno=SSno AND SCno= '1'
基于这样的三个表即学生表S、课程表C和学生选课表SC,它们的结构如下:S(SNO,SNAME,SSEX,SAGE,SDEPT),C(CNO,CNAME),SC(SNO,CNO,GRADE),其中:SNO为学号,SNAME为姓名,SSEX为性别,SAGE为年龄,SDEPT为系别,CNO为课程号,CNAME为课程名,GRADE为成绩。检索学生姓名及其所选修课程的课程号和成绩。正确的SELECT语句是()。 A: SELECTS.SNO,SNAME,CNO,GRADEFROMSWHERES.SNO=SSNO B: SELECTS.SNO,SNAME,CNO,GRADEFROMSCWHERES.SNO=SGRADE C: SELECTS.SNO,SNAME,CNO,GRADEFROMS,SCWHERES.SNO=SSNO D: SELECTS.SNO,SNAMECNO,GRADEFROMS,SC
基于这样的三个表即学生表S、课程表C和学生选课表SC,它们的结构如下:S(SNO,SNAME,SSEX,SAGE,SDEPT),C(CNO,CNAME),SC(SNO,CNO,GRADE),其中:SNO为学号,SNAME为姓名,SSEX为性别,SAGE为年龄,SDEPT为系别,CNO为课程号,CNAME为课程名,GRADE为成绩。检索学生姓名及其所选修课程的课程号和成绩。正确的SELECT语句是()。 A: SELECTS.SNO,SNAME,CNO,GRADEFROMSWHERES.SNO=SSNO B: SELECTS.SNO,SNAME,CNO,GRADEFROMSCWHERES.SNO=SGRADE C: SELECTS.SNO,SNAME,CNO,GRADEFROMS,SCWHERES.SNO=SSNO D: SELECTS.SNO,SNAMECNO,GRADEFROMS,SC