举一反三
- 语句 SELECT MAX(Score) FROM SCInfo 查询结果的记录数有( )。 A: 1 B: 3 C: 5 D: 9
- 表stinfo和表scinfo,语句 SELECT stname, cno ,score FROM stinfo s LEFT JOIN scinfo sc ON s.stid=sc.stid 与语句 SELECT stname, cno,score FROM scinfo sc LEFT JOIN stinfo s ON s.stid=sc.stid 查询结果集完全相同
- 完成以下语句,查询SCInfo(Stid,CNo,Score)表中成绩为85或者88的记录。(注:使用大写字母答题)SELECT * FROM SCInfo WHERE SCORE=85 _______ SCORE=88
- 成绩表 SCInfo(StId,CNo,Score) 的属性StId表示学号,CNo为课程编号,Score为成绩。从SCInfo表中找出无成绩的元组的SQL语句是( )。 A: SELECT * FROM SCInfo WHERE Score=NULL B: SELECT * FROM SCInfo WHERE Score IS '' C: SELECT * FROM SCInfo WHERE Score ='' D: SELECT * FROM SCInfo WHERE Score IS NULL
- 设表stinfo和表scinfo各有17条记录,下列关于语句 SELECT stname, cno,score FROM stinfo s LEFT JOIN scinfo sc ON s.stid=sc.stid与语句 SELECT stname, cno,score FROM scinfo sc LEFT JOIN stinfo s ON s.stid=sc.stid查询结果集正确的是( )。 A: 第1条语句和第2条语句执行后查询结果集都一定是17条记录 B: 第1条语句执行后查询结果集的记录大于等于17条记录 C: 第1条语句执行后查询结果集记录为34条 D: 第2条语句执行后查询结果集为34条
内容
- 0
查询选修课程号为“9710011”的课程的学生学号,成绩。select stid, score from scinfo where cno=_______________
- 1
下列的查询语句哪一项是错误的(选一项) A: Select * from stumarks where score>=60 B: Select * from (select * from stumarks where score>=60) C: Select * from (select * from stumarks where score>=60) as temp D: Select * from (select * from stumarks ) as temp where score>=60
- 2
查询选修课程好为'971001'的课程的学生学号和成绩:select stid,score from scinfo where cno=_____________
- 3
查询scott用户的emp表中的总记录数,可以使用下列哪个语句?() A: SELECT MAX(empno) FROM scott.emp; B: SELECT<br/>COUNT(empno) FROM scott.emp; C: SELECT COUNT(comm) FROM scott.emp; D: SELECT COUNT(*) FROM scott.emp;
- 4
查询book表中price字段的最大值,查询语句是: A: select max(price) from book; B: select min(price) from book; C: select price from min book; D: select price from max book;