




全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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合作协议保险合同样本
- 交通安全主题教育
- 2024-2025统编版道德与法治二年级下册第一单元练习卷及答案
- 2024-2025苏教版科学一年级下册第四单元测试卷及答案
- 2025小学道德与法治教师课标练习卷简答题100题及答案
- 2025高中地理教师课标考试模拟试卷附参考答案
- 小学科学课堂教学设计策略课件
- 中药饮片出库单
- 国开2023春《语言学概论》形考任务1-3+大作业参考答案
- 宿舍楼施工方案方案
- 甲醇-水精馏塔
- 中国话剧史专题知识
- GB/T 15544.1-2023三相交流系统短路电流计算第1部分:电流计算
- GB/T 90.3-2010紧固件质量保证体系
- GB/T 18799-2020家用和类似用途电熨斗性能测试方法
- 科技公司涉密计算机软件安装审批表
- GA/T 1369-2016人员密集场所消防安全评估导则
评论
0/150
提交评论