全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
哈尔滨理工大学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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 漯河医专历考试题及答案
- 学前儿童舞蹈试题及答案
- 中医执业考试题库及答案
- 信息可靠可靠性保证承诺书3篇
- 2025年陕西作家自考题库及答案
- 项目风险管理计划模板系统化风险控制
- 在线资源预定及配置管理系统
- 健康管理咨询服务承诺书(3篇)
- 供应链管理基础信息录入与更新模板
- 智能家庭设备开发承诺函3篇
- 定制化老年大学海外游学创新创业项目商业计划书
- 住房公积金政策宣传课件
- 会诊制度存在问题及整改措施
- 【生物】2025-2026学年人教版八年级生物上册期中考试复习测评试卷
- 外国语学校文化建设方案
- 穿越机组装教学课件
- 大国兵器(中北大学)学习通网课章节测试答案
- 大唐集团招聘笔试试题及答案
- 个税申报培训课件
- 电车考试试题及答案
- 电流互感器知识培训
评论
0/150
提交评论