语句 SELECT student_info.学号, student_info.姓名, SUM(分数) FROM student_info, grade WHERE student_info.学号=grade.学号 GROUP BY student_info.学号, student_info.姓名 的查询结果是( )
举一反三
- 对于学生信息表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是 A: SELECT sno,sname FROM student WHERE grade=NULL B: SELECT sno,sname FROM student WHERE grade IS NULL C: SELECT sno,age FROM student WHERE grade IS NULL D: SELECT sno,age FROM student WHERE grade=NULL
- 在学生表student中查询学生的学号和姓名,可以用命令:select 学号,姓名 student;
- 查询每个学生的学号、姓名、选修的课程名及成绩,下列()的操作是正确的。 A: select student,sno,sname,grade from student,sc where student.sno=sc.sno and sc.cno=course.cno B: select student,sno,sname,grade from student,sc,cource where student.sno=sc.sno C: select student,sno,sname,grade from student,sc,cource where sc.cno=course.cno D: select student,sno,sname,grade from student,sc,cource where student.sno=sc.sno and sc.cno=course.cno
- 查询STUDENT表中成绩大于90分的学号,正确的命令是 A: SELECT 学号 WHERE 成绩>90 B: SELECT 学号 FROM STUDENT SET 成绩>90 C: SELECT 学号 FROM STUDENT WHERE 成绩>90 D: SELECT 学号 FROM STUDENT FOR 成绩>90
- 以下定义的4个视图中,能够进行更新操作的是_________。 A: CREATE VIEW S_AVG(学号,平均分) AS SELECT 学号,AVG(分数) FROM score WHERE 分数IS NOT NULL GROUP BY 学号 B: CREATE VIEW S_MALE(学号,姓名) AS SELECT 学号,姓名 FROM student WHERE 班号='09031' C: CREATE VIEW S_FEMALE(姓名,出生日期) AS SELECT 姓名,出生日期 FROM student WHERE 性别='女' D: CREATE VIEW S_G(学号,姓名,课程名,分数) AS SELECT S.学号,姓名,课程名,分数 FROM student S,score SC,course C WHERE S.学号=S 学号AND S 课程号 = 课程号