国家开放大学《书法鉴赏》作业练习1[答案] 题目类型: 判断题 题目: 每一种字体都有正体和草体两种形式. 选项: 对 错 题目类型: 判断题 题目: 看其是否符合大自然的择优原则是从技术角
国家开放大学《数据库应用技术》第5章 自测[答案]
题目类型:
单选题
题目:
当表r和表s进行连接操作时,如果表r中的元组不满足连接条件,在连接结果中也会将这些记录保留下来的操作是
选项:
左外连接
右外连接
内连接
自连接
题目类型:
单选题
题目:
下列聚合函数中,不忽略null值的是
选项:
sum(列名)
max(列名)
avg(列名)
count(*)
题目类型:
单选题
题目:
下列查询语句中,错误的是
选项:
select sno, count(*) from sc group by sno
select sno from sc group by sno where count(*) > 3
select sno from sc group by sno having count(*) > 3
select sno from sc group by sno
题目类型:
单选题
题目:
现要利用student表查询年龄最小的学生的姓名和年龄.下列实现此功能的查询语句中,正确的是
选项:
select sname, min(sage) from student
select sname, sage from student where sage = min(sage)
select top 1 sname, sage from student
select top 1 sname, sage from student order by sage
题目类型:
单选题
题目:
下列sql语句中,用于更新表数据的语句是
选项:
alter
select
update
insert
题目类型:
单选题
题目:
设有teachers表,该表的定义如下: create table teachers( tno char(8) primary key, tname varchar(10) not null, age tinyint check(age between 25 and 65) )下列插入语句中,不能正确执行的是
选项:
insert into teachers values('t100','张宏',null)
insert into teachers(tno,tname,age) values('t100','张宏',30)
insert into teachers(tno,tname) values('t100','张宏')
insert into teachers values('t100','张宏')
题目类型:
单选题
题目:
设数据库中已有表5-1 ~ 表5-3所示的student、course和sc表.现要查询学生选修的第2学期开设课程的情况,只需列出学号、姓名、所在系和所选的课程号.该查询涉及的表是
选项:
仅student表
仅student和sc表
仅student和course表
student、sc和course表
题目类型:
单选题
题目:
下列删除计算机系学生(在student表中)的选修课程记录(在sc表中)的语句,正确的是
选项:
delete from sc join student b on s.sno = b.sno where sdept = '计算机系'
delete from sc from sc join student b on sc.sno = b.sno where sdept = '计算机系'
delete from student where sdept = '计算机系'
delete from sc where sdept = '计算机系'
题目类型:
单选题
题目:
当表r和表s进行连接操作时,如果表r中的元组不满足连接条件,在连接结果中也会将这些记录保留下来的操作是
选项:
左外连接
右外连接
内连接
自连接
题目类型:
单选题
题目:
下列聚合函数中,不忽略null值的是
选项:
sum(列名)
max(列名)
avg(列名)
count(*)
题目类型:
单选题
题目:
下列查询语句中,错误的是
选项:
select sno, count(*) from sc group by sno
select sno from sc group by sno where count(*) > 3
select sno from sc group by sno having count(*) > 3
select sno from sc group by sno
题目类型:
单选题
题目:
现要利用student表查询年龄最小的学生的姓名和年龄.下列实现此功能的查询语句中,正确的是
选项:
select sname, min(sage) from student
select sname, sage from student where sage = min(sage)
select top 1 sname, sage from student
select top 1 sname, sage from student order by sage
题目类型:
单选题
题目:
下列sql语句中,用于更新表数据的语句是
选项:
alter
select
update
insert
题目类型:
单选题
题目:
设有teachers表,该表的定义如下: create table teachers( tno char(8) primary key, tname varchar(10) not null, age tinyint check(age between 25 and 65) )下列插入语句中,不能正确执行的是
选项:
insert into teachers values('t100','张宏',null)
insert into teachers(tno,tname,age) values('t100','张宏',30)
insert into teachers(tno,tname) values('t100','张宏')
insert into teachers values('t100','张宏')
题目类型:
单选题
题目:
设数据库中已有表5-1 ~ 表5-3所示的student、course和sc表.现要查询学生选修的第2学期开设课程的情况,只需列出学号、姓名、所在系和所选的课程号.该查询涉及的表是
选项:
仅student表
仅student和sc表
仅student和course表
student、sc和course表
题目类型:
单选题
题目:
下列删除计算机系学生(在student表中)的选修课程记录(在sc表中)的语句,正确的是
选项:
delete from sc join student b on s.sno = b.sno where sdept = '计算机系'
delete from sc from sc join student b on sc.sno = b.sno where sdept = '计算机系'
delete from student where sdept = '计算机系'
delete from sc where sdept = '计算机系'