ImageVerifierCode 换一换
格式:PDF , 页数:115 ,大小:5.77MB ,
资源ID:6631087      下载积分:14 金币
验证码下载
登录下载
邮箱/手机:
验证码: 获取验证码
温馨提示:
支付成功后,系统会自动生成账号(用户名为邮箱或者手机号,密码是验证码),方便下次登录下载和查询订单;
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/6631087.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  
声明  |  会员权益     获赠5币     写作写作

1、填表:    下载求助     留言反馈    退款申请
2、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
3、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
4、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
5、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前自行私信或留言给上传者【曲****】。
6、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
7、本文档遇到问题,请及时私信或留言给本站上传会员【曲****】,需本站解决可联系【 微信客服】、【 QQ客服】,若有其他问题请点击或扫码反馈【 服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【 版权申诉】”(推荐),意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4008-655-100;投诉/维权电话:4009-655-100。

注意事项

本文(数据库系统概念第五版 课后习题答案.pdf)为本站上传会员【曲****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4008-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

数据库系统概念第五版 课后习题答案.pdf

1、INSTRUCTORS MANUAL TO ACCOMPANYDatabase System ConceptsFifth EditionAbraham SilberschatzYale UniversityHenry E KorthLehigh UniversityS.SudarshanIndian Institute of Technology,BombayCopyright 2005 A.Silberschatz,H.Korth,and S.SudarshanPreface 1Chapter 1 IntroductionExercises 3Chapter 2 Relational Mod

2、elExercises 7Chapter 3 SQLExercises 11Chapter 4 Advanced SQLExercises 19Chapter 5 Other Relational LanguagesExercises 23Chapter 6 Database Design and the E-R ModelExercises 33ContentsChapter 7 Relational Database DesignExercises 41Chapter 8 Application Design and DevelopmentExercises 47Chapter 9 Obj

3、ect-Based DatabasesExercises 51Chapter 10 XMLExercises 55Chapter 11 Storage and File StructureExercises 61Chapter 12 Indexing and HashingExercises 65Chapter 13 Query ProcessingExercises 69Chapter 14 Query OptimizationExercises 75Chapter 15 TransactionsExercises 79Chapter 16 Concurrency ControlExerci

4、ses 83Chapter 17 Recovery SystemExercises 89ContentsChapter 18 Data Analysis and MiningExercises 93Chapter 19 Information RetrievalExercises 99Chapter 20 Database-System ArchitecturesExercises 101Chapter 21 Parallel DatabasesExercises 105Chapter 22 Distributed DatabasesExercises 109Chapter 23 Advanc

5、ed Application DevelopmentExercises 115Chapter 24 Advanced Data Types and New ApplicationsExercises 119Chapter 25 Advanced Transaction ProcessingExercises 123This volume is an instructors manual for the 5th edition of Database System Concepts by Abraham Silberschatz,Henry F.Korth and S.Sudarshan.It

6、contains answers to the exercises at the end of each chapter of the book.Before providing answers to the exercises for each chapter,we include a few remarks about the chapter.The nature of these remarks vary.They include explanations of the inclusion or omission of certain material,and remarks on ho

7、w we teach the chapter in our own courses.The remarks also include suggestions on material to skip if time is at a premium,and tips on software and supplementary material that can be used for programming exercises.The Web home page of the book,at www.db-,contains a variety of useful information,incl

8、uding up-to-date errata,online appendices describing the network data model,the hierarchical data model,and advanced relational database design,and model course syllabi.We will periodically update the page with supplementary material that may be of use to teachers and students.We provide a mailing l

9、ist through which users can communicate among themselves and with us.If you wish to use this facility,please visit the following URL and follow the instructions there to subscribe:mailman.cs.yale.edu/mailman/listinfo/db-book-listThe mailman mailing list system provides many benefits,such as an archi

10、ve of postings,and several subscription options,including digest and Web only.To send messages to the list,send e-mail to:db-book-listcs.yale.eduWe would appreciate it if you would notify us of any errors or omissions in the book,as well as in the instructors manual.Internet electronic mail should b

11、e addressed to db-bookcs.yale.edu.Physical mail may be sent to Avi Silberschatz,Yale University,51 Prospect Street,New Haven,CT,06520,USA.2 PrefaceAlthough we have tried to produce an instructors manual which will aid all of the users of our book as much as possible,there can always be improvements.

12、These could include improved answers,additional questions,sample test questions,programming projects,suggestions on alternative orders of presentation of the material,additional references,and so on.If you would like to suggest any such improvements to the book or the instructors manual,we would be

13、glad to hear from you.All contributions that we make use of will,of course,be properly credited to their contributor.This manual is derived from the manuals for the earlier editions.The manual for the 4th edition was prepared by Nilesh Dalvi,Sumit Sanghai,Gaurav Bhalotia and Arvind Hulgeri.The manua

14、l for the 3rd edition was prepared by K.V.Raghavan with help from Prateek R.Kapadia.Sara Strandtman helped with the instructor manual for the 2nd and 3rd editions,while Greg Speegle and Dawn Bezviner helped us to prepare the instructors manual for the 1st edition.A.S.H.F.K.S.S.Instructor Manual Vers

15、ion 5.0.0CHAPTERIntroductionExercises1.5 List four applications which you have used,that most likely used a database system to store persistent data.Answer:No answer1.6 List four significant differences between a file-processing system and a DBMS.Answer:Some main deferences between a database manage

16、ment system and a file-processing system are:Both systems contain a collection of data and a set of programs which access that data.A database management system coordinates both the physical and the logical access to the data,whereas a file-processing system coordinates only the physical access.A da

17、tabase management system reduces the amount of data duplication by ensuring that a physical piece of data is available to all programs authorized to have access to it,whereas data written by one program in a file-processing system may not be readable by another program.A database management system i

18、s designed to allow flexible access to data(i.e.,queries),whereas a file-processing system is designed to allow predetermined access to data(i.e.,compiled programs).A database management system is designed to coordinate multiple users accessing the same data at the same time.A file-processing system

19、 is usually designed to allow one or more programs to access di仔erent data files at the same time.In a file-processing system,a file can be accessed by two programs concurrently only if both programs have read-only access to the file.1.7 Explain the difference between physical and logical data indep

20、endence.Answer:34 Chapter 1 Introduction Physical data independence is the ability to modify the physical scheme without making it necessary to rewrite application programs.Such modifications include changing from unblocked to blocked record storage,or from sequential to random access files.Logical

21、data independence is the ability to modify the conceptual scheme without making it necessary to rewrite application programs.Such a modification might be adding a field to a record;an application programs view hides this change from the program.1.8 List five responsibilities of a database management

22、 system.For each responsibility,explain the problems that would arise if the responsibility were not discharged.Answer:A general purpose database manager(DBM)has five responsibilities:a.interaction with the file manager.b.integrity enforcement.c.security enforcement.d.backup and recovery.e.concurren

23、cy control.If these responsibilities were not met by a given DBM(and the text points out that sometimes a responsibility is omitted by design,such as concurrency control on a single-user DBM for a micro computer)the following problems can occur,respectively:a.No DBM can do without this,if there is n

24、o file manager interaction then nothing stored in the files can be retrieved.b.Consistency constraints may not be satisfied,account balances could go below the minimum allowed,employees could earn too much overtime(e.g.,hours 80)or,airline pilots may fly more hours than allowed by law.c.Unauthorized

25、 users may access the database,or users authorized to access part of the database may be able to access parts of the database for which they lack authority.For example,a high school student could get access to national defense secret codes,or employees could find out what their supervisors earn.d.Da

26、ta could be lost permanently,rather than at least being available in a consistent state that existed prior to a failure.e.Consistency constraints may be violated despite proper integrity enforcement in each transaction.For example,incorrect bank balances might be reflected due to simultaneous withdr

27、awals and deposits,and so on.1.9 List at least two reasons why database systems support data manipulation using a declarative query language such as SQL,instead of just providing a a library of C or C+functions to carry out data manipulation.Answer:No answer1.10 Explain what problems are caused by t

28、he design of the table in Figure 1.5.Answer:No answerExercises1.11 What are five main functions of a database administrator?Answer:Five main functions of a database administrator are:To create the scheme definition To define the storage structure and access methods To modify the scheme and/or physic

29、al organization when necessary To grant authorization for data access To specify integrity constraintsCHAPTER 2Exercises2.4 Describe the differences in meaning between the terms relation and relation schema.Answer:A relation schema is a type definition,and a relation is an instance of that schema.Fo

30、r example,student(ss#,name)is a relation schema andss#name123-45-6789456-78-9123Tom Jones Joe Brownis a relation based on that schema.2.5 Consider the relational database of Figure 2.35,where the primary keys are underlined.Give an expression in the relational algebra to express each of the followin

31、g queries:a.Find the names of all employees who work for First Bank Corporation.b.Find the names and cities of residence of all employees who work for First Bank Corporation.c.Find the names,street address,and cities of residence of all employees who work for First Bank Corporation and earn more tha

32、n$10,000 per annum.d.Find the names of all employees in this database who live in the same city as the company for which they work.e.Assume the companies may be located in several cities.Find all companies located in every city in which Small Bank Corporation is located.Answer:rson-name 1company-na/

33、me zzFirst Bank Corporation,/(wor5)78 Chapter 2 Relational Modelemployee(person-name,street,city)works(person-name,company-name,salary)company(company-name,city)manages(person-name,manager-name)Figure 2.35.Relational database for Exercises 2.1,2.3 and 2.9.b-person-name,city(GTTiployee Xcompany-name=

34、First Bank Corporation 注s)-person-name,street,citycompany-name=First Bank Corporation A salary 10000)works M employee)d.-person-name(employee X works M company)e.Note:Small Bank Corporation will be included in each answer.(flcity(aCompany-name=/Small Bank Corporation,/(cowaw)2.6 Consider the relatio

35、n of Figure 2.20,which shows the result of the query“Find the names of all customers who have a loan at the bank.Rewrite the query to include not only the name,but also the city of residence for each customer.Observe that now customer Jackson no longer appears in the result,even though Jackson does

36、in fact have a loan from the bank.a.Explain why Jackson does not appear in the result.b.Suppose that you want Jackson to appear in the result.How would you modify the database to achieve this effect?c.Again,suppose that you want Jackson to appear in the result.Write a query using an outer join that

37、accomplishes this desire without your having to modify the database.Answer:The rewritten query is-customer-name,customer-city,amount(boWOWCV X loCLTl X CUStOTTlCT)a.Although Jackson does have a loan,no address is given for Jackson in the customer relation.Since no tuple in customer joins with the Ja

38、ckson tuple of borrower,Jackson does not appear in the result.b.The best solution is to insert Jacksons address into the customer relation.If the address is unknown,null values may be used.If the database system does not support nulls,a special value may be used(such as unknown)for Jacksons street a

39、nd city.The special value chosen must not be a plausible name for an actual city or street.-customer-name,customer-city,amountborrower M loan)型 customer)2.7 Consider the relational database of Figure 2.35.Give an expression in the relational algebra for each request:a.Give all employees of First Ban

40、k Corporation a 10 percent salary raise.Exercises 9b.Give all managers in this database a 10 percent salary raise,unless the salary would be greater than$100,000.In such cases,give only a 3 percent raise.c.Delete all tuples in the works relation for employees of Small Bank Corporation.Answer:a。WOTks

41、 100000(l)力 2-1 2 U(J-works.per son-name,company-name,salary*1.1salary*1.1 2 account-holdersaccount-numbernum-holders)(1)b.力i-(Pdi(depositor)x(depositor)x Pd3(depositor2-(dl.account-numberd2.account-numberd3.account-number)(1 1)-dl.account-numb er dl.customer-named2.customer-name Ad2.customer-named.

42、customer-name/d3.customer-namedl.customer-name)(2)2.9 Consider the relational database of Figure 2.35.Give a relational-algebra expression for each of the following queries:a.Find the company with the most employees.b.Find the company with the smallest payroll.c.Find those companies whose employees

43、earn a higher salary,on average,than the average salary at First Bank Corporation.Answer:10 Chapter 2 Relational Modela.力icompan-namePcounf-distinct person-name W。泌,)力2 employees company-strengthcompany-name,num-employees)(力1)-company-name(P力3 company-name,num-employees)(1)*P力4(num-employees)(2)b.11

44、力2company-nameGslW.salary(WOVksmillpagroZZ company-payroll(company-name,payroll)(1 1)-company-name Pts(company-name,payroll)(1)*Pt(payroll)(2)c.刀company-name GaVg salary OTks.24 company-name=Z/First Bank Corporation(“D.company-name(P 加(company-name,avg-salary)(1 1)t.avg-salary first-bank.avg-salary

45、Pfirst-bank(company-name,avg-salary)(2)2.10 List two reasons why null values might be introduced into the database.Answer:Nulls may be introduced into the database because the actual value is either unknown or does not exist.For example,an employee whose address has changed and whose new address is

46、not yet known should be retained with a null address.If employee tuples have a composite attribute dependents,and a particular employee has no dependents,then that tuples dependents attribute should be given a null value.2.11 Consider the following relational schemaemployee(empno,name,office,age)boo

47、ksjisbn,title,authors,publishe r)loan(empno,isbn,date)Write the following queries in relational algebra.a.Find the names of employees who have borrowed a book published by McGraw-Hill.b.Find the names of employees who have borrowed all books published by McGraw-Hill.c.Find the names of employees who

48、 have borrowed more than five different books published by McGraw-Hill.d.For each publisher,find the names of employees who have borrowed more than five books of that publisher.Answer:No answerCHAPTERSQLExercises3.8 Consider the insurance database of Figure 3.11,where the primary keys are underlined

49、.Construct the following SQL queries for this relational database.a.Find the number of accidents in which the cars belonging to“John Smith”were involved.b.Update the damage amount for the car with license number“AABB2000“in the accident with report number AR2197”to$3000.Answer:Note:The participated

50、relation relates drivers,cars,and accidents.a.SQL query:select count(distinct*)from accidentwhere exists(select*from participated,personwhere participated.driverJd=person.driverJdand person.name=John Smithand accident.report-number=participated.report_number)b.SQL query:update participatedset damage

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服