全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Assignment Cover SheetStudents are requested to complete all details on both portions prior to submission at the to enable a speedy service. Please use a ballpoint pen.STUDENT ID: 2009016(Please enter your Registration number here)MODULE CODE:COM147J4MODULE TITLE:Introduction to DatabaseLECTURERS NAME:Lu ShaoMingASSIGNMENT NO: 1 OF 3 CONTRIBUTION TOWARDS:Coursework Total 30 %DATE SET:23 April, 2010APPROXIMATE TIME TO BE SPENT:1 WeeksHand-In Date:30 April,2010ON RETURNTUTORS COMMENTS ON WORK: Tutors Signature: GRADE/MARKSTUDENT PLEASE NOTEIt is your responsibility to ensure that ALL course work is submitted on time to the specified location. You must keep copies of all work submitted. You are advised to keep your receipt safe it is required in the event of any query concerning this Assignment.ASSIGNMENT RECEIPT Not valid unless stampedStudents Signature:Date:It is your responsibility to retain this receipt. StampAssignment 1 (of 3)Date of Issue:9:00 AM, 23 April, 2010Submission Date:11:00 AM, 30 April, 2010Feedback: 11:00 AM, 30 April, 2010 Assignment Information This assignment contributes 30% of the overall coursework mark for the module, the other 60% being awarded for a class test. Coursework contributes 25% of the final module result, the other 75% being an end of semester examination. Students should attempt and submit solutions to all four of the questions below. Each question carries equal marks.Question 1 Translate each of the following terms:(a)relation (b)database (c)Database management system(d)candidate key (e)data model (f)NULL(g)domain (h)relational algebra(a) Relation:A relation is a table with columns and rows.(b) database:A shared collection of logically related data,and a description of this data,designed to meet the information needs of an organization.(c) Database management system:(DBMS)A software system that enables users to define,create,maintain,and control access to the database.(d) Candidate key:A superkey such that no proper subset is a superkey within the relation.(e) Data model:An integrated collection of concepts for describing and manipulating data,relationships between data,and constraints on the data in an organization.(f) NULL:Represents a value for an attribute that is currently unknown or is not applicable for this tuple.(g) Domain:A domain is the set of allowable valus for one or more attributes.(h) Relational algebra:The relational algebra is a theoretical language with operations that work on one or more relations to define another relation without changing the original relation(s).Question 2 Describe the approach taken to the handling of data in the early file-based systems. List the disadvantages of this approach.In the early,the file-based systems is a collection of application programs that perform services for the end-users such as the production reports.Each program defines and manages its own data.The disadvantages of this approach:(1) Separation and isolation of data(2) Data depandence(3) Incomtible file formats(4) Fixed queries/proliferation of application programsQuestion 3 Explain the function of each of the clauses in the SELECT statement.what restrictions are imposed on these clauses.FROM specifies the table or to be usedWHERE filters the rows subject to some conditionGROUP BY forms groups of rows with the same culumn valueHAVING filters the groups subject to some conditionSELECT specifies which columns are to appear in the outputORDER BY specifies the order of the outputFor the following exercise, use the Hotel schema defined at the start of the Exercise at the end of Chapter 3 in textbook.Question 4 Generate SQL commands for the following queries:(1) List all the rooms.(2) List all single roos with a price below 20 per night(3) List the price and type of all rooms at the Grosvenor Hotel. (1) soulution: statement:SELECT room.*FROM room;1q,(2) s
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025未经许可房屋买卖合同书
- 聘请专家协议合同范本
- 2025年湖北网页设计试卷及答案
- 2025标准版小麦委托加工合同模板
- 2025年宠物寄养APP开发行业功能设计趋势与用户体验调研
- 2025年短视频创作者保底结算合同协议
- 2025年低空经济「航空运动」市场分析与增长潜力报告
- 2025年低空飞行器「节能环保」一体化补给站发展前景研究报告
- 2025年共享电动滑板车投放市场运营成本控制报告
- 2025年建筑劳务分包合同协议模板
- 深静脉血栓的中医预防及护理
- 职业技术学院毕业生就业服务方案
- 内分泌急危重症课件
- 2025-2030中国光伏产业全球化布局及政策红利分析报告
- 弘扬教育家精神培养新时代大先生 课件
- 小学保密教育班会
- 《麻雀》说课课件 统编版小学语文四年级上册
- 小学生社团活动课件
- 乙肝防治知识讲座课件
- 《景观规划设计》课件-项目一:乡村景观规划基础
- 售后服务回访跟踪措施
评论
0/150
提交评论