2022年数据库期末考试题B .pdf
《2022年数据库期末考试题B .pdf》由会员分享,可在线阅读,更多相关《2022年数据库期末考试题B .pdf(12页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、2003-2004 学年第二学期期末考试数据库系统概论试题B 一、选择题(20 分,每小题 2 分):1数据库系统的核心是 _。A数据库B数据库管理系统C数据模型D软件工具2关系模型中,候选码 _。A可由多个任意属性组成B至多由一个属性组成C可由一个或多个其值能惟一标识该关系模式中任何元组的属性组成D以上都不是3SQL 语言具有 _的功能。A关系规范化、数据操纵、数据控制B数据定义、数据操纵、数据控制C数据定义、关系规范化、数据控制D数据定义、关系规范化、数据操纵4SQL 语言的数据操纵语句包括SELECT,INSERT,UPDATE 和 DELETE,最重要的,也是使用最频繁的语句是_。AS
2、ELECT BINSERT CUPDATE DDELETE 5.FoxBASE、FoxPro 属于_。A表式系统B最小关系系统C关系完备的系统D全关系系统6关系规范化中的插入操作异常是指_。A不该删除的数据被删除B不该插入的数据被插入C应该删除的数据未被删除D应该插入的数据未被插入7消除了部分函数依赖的INF 的关系模式,必定是 _。A1NF B2NF C3NF D4NF 8在关系数据库设计中,设计关系模式是_的任务。A需求分析阶段B概念设计阶段C逻辑设计阶段D物理设计阶段9_是 DBMS 的基本单位,它是用户定义的一组逻辑一致的程序序列。A程序B命令C事务D文件10设有两个事务 T1、T2,
3、其并发操作如图1 所示,下面评价正确的是_。A该操作不存在问题B该操作丢失修改C该操作不能重复读D该操作读“脏”数据T1 T2 读 A=10 读 A=10 A=A-5 写回A=A-8 写回图 1 事务并发操作图二、填空题(20 分,每小空 2 分):1如果数据库中只包含成功事务提交的结果,就说数据库处于一致状态。2完整性约束是指实体完整性和参照完整性。3关系数据库中可命名的最小数据单位是属性名。4保护数据安全性的一般方法是设置用户标识和存取权限控制。5“为哪些表,在哪些字段上,建立什么样的索引”这一设计内容应该属于数据库设计中的 物理设计阶段。6若关系为 1NF,且它的每一非主属性都不部分函数
4、依赖于 候选码,则该关系为 2NF。7关系代数运算中,专门的关系运算有选择、投影和连接。三、简答题和综合题(15 分,每小题 5 分):1举例说明关系参照完整性的含义。答:假如有下表所示的两个关系表,在成绩表中,学号是主码,课程号是外码:在课程表中课程号是主码,根据关系参照完整性的定义,R2 是成绩表,R1 是课程表,也就是成绩表中课程号的值或者为空或者在课程表中的课程号中能够找文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10
5、T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R
6、2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5
7、A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C
8、10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X
9、8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3
10、C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N
11、9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2到。成绩表课程表学号姓名课程号成绩101 刘军k5 80 212 王丽k8 76 221 章华k9 92 课程号课程号k5 高等数学k8 C 语言 n k9 计算机网络文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F
12、7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:C
13、Q9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD
14、9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV
15、1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码
16、:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6
17、HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1
18、ZV1F7Y9X8R2满足这个条件是必须的,如果不满足,假设成绩表中课程号的值k20 在课程表中课程号的值中找不到,则该课程号显然是不正确的,这样会造成数据的不一致性。2数据库管理系统有哪些功能?答:数据库管理系统(DBMS)是位于操作系统与用户之间的一个数据管理软件,它主要功能包括以下几个方面:数据定义功能DBMS 提供数据描述语言(DDL),用户可通过它来定义数据。数据操纵功能DBMS 还提供数据操纵语言(DML),实现对数据库的基本操作:查询、插入、删除和修改。数据库的运行管理这是 DBMS 运行时的核心部分,它包括开发控制,安全性检查,完整性约束条件的检查和执行,数据库的内容维护等。数
19、据库的建立和维护功能它包括数据库初始数据的输入及转换,数据库的转储与恢复,数据库的重组功能和性能的监视与分析功能等。3事务中的提交和回滚是什么意思?答:事务中的提交(COMMIT)是提交事务的所有操作。具体说就是将事务中所有对数据库的更新写回到磁盘上的物理数据库中去,事务正常结束。事务中的回滚(ROLLBACK)是数据库滚回到事务开始时的状态。具体地说就是,在事务运行的过程中发生了某种故障,事务不能继续执行,系统将事务中对数据库的所有已完成的更新操作全部撤消,使数据库回滚到事务开始时的状态。四、综合题(45 分):1假定一个部门的数据库包括以下的信息:(10 分)职工的信息:职工号、姓名、住址
20、和所在部门。部门的信息:部门名、部门所有职工、经理和销售的产品。产品的信息:产品名、制造商、价格、型号及产品内部编号。制造商的信息:制造商名称、地址、生产的产品名。完成如下设计:解:本题对应的E-R 图如图 2 所示。职工号姓名地址部门名经理产品名文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5
21、A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C
22、10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X
23、8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3
24、C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N
25、9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y9X8R2文档编码:CQ9F3C5A8V6 HD9K7N9C10T1 ZV1F7Y
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年数据库期末考试题B 2022 数据库 期末 考试题
限制150内