


全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
哈尔滨理工大学20062007学年第一学期考试试题答案 A卷装 订 线班级: 学号: 姓名:考试科目: 数据库系统 考试时间:120分钟 试卷总分100分考试班级:题号一二三四五六七八九十总分得分评卷教师I、Choice Questions1.B 2.C 3.D 4.B 5.D6.C 7.D 8.D 9.B 10.CII、 Blank-filling Questions. 1、 condition(s) , action(s) 2、A= 180 ;B= 170 3、 logical , view or view , logical 4、 4ms 5、 optimizer evaluation engine III、 Answer the following questions briefly. 1、A superkey is a set of one or more attributes that, taken collectively, to identify uniquely an entity in the entity set. Candidate keys are minimal superkeys which no proper subset is a superkey. Primary key is a candidate key that is chosen as the principal means of identifying entities within an entity set.2、Database administrators duties include: (choose any four from the following)l Schema definitionl Storage structure and access method definitionl Schema and physical organization modificationl Granting user authority to access the databasel Specifying integrity constraintsl Acting as liaison with usersl Monitoring performance and responding to changes in requirements3、a) U2, U3 and U5;b)U1, U3, U4 and U5.4、 result = ADresult = ABCD(A C and A B)result = ABCDE(CD E and CD ADBC)result = ABCDEH(CD H and CD ADBCE)Is AD a candidate key? 1. Is AD a super key?1 Does AD R? = Is (AD)+ R2. Is any subset of AD a superkey?1 Does A R? = Is (A)+ R2 Does D R? = Is (D)+ R?5、The relation schema SCT is not in BCNF. After decomposition the relation schemas are: IV、 Complete the following queries. 1.a)customer_name (borrower) customer_name (depositor)b)account account s branch_name = “Perryridge” (account )c)account account (“Perryridge”, A-973, 1200)depositor depositor (“Smith”, A-973)2. create table account( account_number char(10),branch_namechar(15),balancenumeric(12,2),primary key (account_number),foreign key (branch_name) references branch,check (balance =0)3.a) select loan_numberfrom loanwhere branch_name = Perryridge and amount 1200b)(select customer_name from depositor)intersect(select customer_name from borrower)c)select branch_name, avg (balance)from accountgroup by branch_namehaving avg (balance) 1200d)select loan_numberfrom loanwhere amount is nullV、 Resolve the following questions of designing. 1、E-R diagram for the university registrars office:2、The relational database corresponding to the preceding E-R diagram:student( sid, name, program)course_offering(courseno, secno, year, semester, time, room)Instructor(iid, name, department,title)courses(courseno, title, credits,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025至2030中国乳酸钙冲剂行业发展分析及产业运行态势及投资规划深度研究报告
- 一、无端崖之辞教学设计-2025-2026学年初中信息科技泰山版2024九年级全一册-晋教版2017
- 2024-2025学年高中历史 第一单元 古代中国经济的基本结构与特点 第3课 古代商业的发展新课说课稿1 新人教版必修2
- 学校信息化建设管理制度
- 五年级品德与社会下册 悲愤的吼声2说课稿 浙教版
- 2025至2030中国水资源开发行业项目调研及市场前景预测评估报告
- 幼儿园夏季安全管理工作方案
- 房地产项目投资分析与风险防范策略
- 医院血液样本采集及检验操作规范
- 长沙团队管理咨询方案
- 微生物学第九章 微生物生态
- YS/T 226.12-2009硒化学分析方法第12部分:硒量的测定硫代硫酸钠容量法
- 雪落在中国土地上
- GB/T 29114-2012燃气轮机液体燃料
- GB/T 18690.1-2009农业灌溉设备微灌用过滤器第1部分:术语、定义和分类
- FCI测试试题附答案
- 部编版四年级上册语文全册1-8单元课文思维导图
- 耳部解剖及急慢性中耳炎课件
- 【成都】麓湖生态城地产视角分析总结
- 盘扣支模架工程监理细则
- 军事训练教学法模板课件
评论
0/150
提交评论