




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Introduction to Database SystemWei-Pang Yang, IM.NDHU, 20102012 Final Test-1Example:Banking Database 1. branch 2. customer客戶(存款戶,貸款戶)5. account 存款帳 3. depositor 存款戶 6. loan貸款帳 4. borrower貸款戶分公司 國立東華大學試題國立東華大學試題: 資料庫管理資料庫管理 資訊管理學系2012.06.19Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010 Q
2、uestion 1: Terms Explanation (20%)1)Logical Database Design2)Update Anomalies3)Minimize the number of Disk Access4)Weak Entity5)Draw the Functional Dependency Diagram for table account in page 1.6)Total participator vs. Partial participator in ER-Model7)Many-to-Many Relationship Set8)blob: binary la
3、rge object9)foreign key (branch-name) references branch on delete cascade10) Generalization vs. Specialization2012 Final Test-2Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010Question 2: Real-world vs. E-R Model vs. Tables (10%) 1. branch 2. customern客戶(存款戶,貸款戶) 3. depositorn存款戶n分公司Semant
4、ic Data Model:Entity-Relationship (E-R) Data ModelThe real-world enterprisen 試討論 Real-world, E-R Model , 及Tables 之關係2012 Final Test-3Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010 Question 3: 1NF 2NF (10%) S# STATUS CITY S1 20 London S2 10 Paris S3 10 Paris S4 20 London S5 30 Athens SEC
5、OND S# P# QTY) S1 P1 300 S1 P2 200 S1 P3 400 S1 P4 200 S1 P5 100 S2 P1 300 S2 P2 400 S3 P2 200 S4 P4 300 S4 P5 400SP S# STATUS CITY P# QTY S1 20 London P1 300 S1 20 London P2 200 S1 20 London P3 400 S1 20 London P4 200 S1 20 London P5 100 S1 20 London P6 100 S2 10 Paris P1 300 S2 10 Paris P2 400 S3
6、10 Paris P2 200 S4 20 London P2 200 S4 20 London P4 300 S4 20 London P5 400FIRST從下面幾點討論把 FIRST 拆成 SECOND 及 SP 的好處:1)Update? S1 moves from London to Paris2)Insertion: (S5 30 Athens) 3)Delete S3 supplies P2 200,2012 Final Test-4Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010 Question 4: 2N
7、F 3NF (10%) S# STATUS CITY S1 20 London S2 10 Paris S3 10 Paris S4 20 London S5 30 Athens SECOND (in 2NF)1)SECOND 還有缺點嗎? 2)SECOND是3NF嗎? Why?從下面幾點討論把 SECOND拆成 CS及 SC 的好處3)Update4)Insertion5)Delete CITY STATUS Athens 30 London 20 Paris 10 Rome 50 CS (in 3NF) SC (in 3NF) S# CITY S1 London S2 Paris S3 P
8、aris S4 London S5 Athens 2012 Final Test-5Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010nConsider the Supplier table, S.n假設 Index 整個放在一個 page, S Table 每一筆 tuple 各放一個 pageS1S2S3S4S5Smith Jones Blake Clark Adams2010302030LondonParis Paris London Athens City-Index (index) Athens London Lon
9、don Paris Paris S (indexed file) Question 5: Indexing (10%) 1)要列印所有住在 “Athens” 的Suppliers Name, 需多少Disk I/O? 解釋之。2)要列印所有住在 “London” 的Suppliers Name, 需多少Disk I/O? 解釋之。3)要列印所有住在 “Taipei” 的Suppliers Name, 需多少Disk I/O? 解釋之。4)若插入 “S6 Yang 25 Hualien”, 重畫 S 及 City-Index 二 Tables.5)如果沒有City-Index, 要列印所有住在
10、“London” 的Suppliers Name, 需多少Disk I/O? 解釋之。2012 Final Test-6Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010 Question 6: B+-tree (10%) 50 8296 97 9991 93 9489 9483 85 8971 78 8260 62 7051 52 5858 7035 40 5015 18 326 8 1212 32 index set Sequence set (with pointers to data records)-1)B+ tre
11、e 如何提供 “fast direct access” 的服務? 以找 key= “62”為例說明2)B+ tree 如何提供 “fast sequential access” 的服務?3)若一個 node 可放 100 key 時,第三層共可放幾個 key?4)Sequence set (with pointers to data records) 是什麼意思?2012 Final Test-7Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010nAccording to your final project as “Desi
12、gn and implement a useful database application system”1)What is the title of your project?2)Names of members in your team.3)Draw the E-R Diagram of your application system. (You can just give a similar diagram.)4)Draw a table to show one relation used in the system5)Check your answer in d) to see wh
13、ether it is in the 1NF? Why? Please answer “why” by using the definition of the 1NF.6)Same as e) to see whether it is in the 2NF? Why?7)Same as e) to see whether it is in the 3NF? Why?Question 7: About Your Final Term Project (10%)2012 Final Test-8Introduction to Database SystemWei-Pang Yang, IM.NDH
14、U, 2010Host Language+ DSLHost Language+ DSLHost Language+ DSLHost Language+ DSLHost Language+ DSLUser A1User A2User B1User B2User B3External View # &External ViewBExternal/conceptualmapping AConceptualViewExternal/conceptualmapping BConceptual/internalmappingStored database (Internal View)Databa
15、semanagementsystem dictionary(DBMS) e.g. system catalogDBAStoragestructuredefinition(Internalschema)ConceptualschemaExternalschemaAExternalschemaB(Build andmaintainschemasandmappings)#& DSL (Data Sub Language)C, Pascale.g. SQLSQL123123.100Question 8: 儘量解釋右圖儘量解釋右圖 (10%)第8 、9 、10任選二題做答2012 Final T
16、est-9Introduction to Database SystemWei-Pang Yang, IM.NDHU, 2010Major System Components: DB2SourceModuleModifiedSourceModuleDBRMObjectModuleLoadModuleApplicationPlanPL/I-CompilerBindPre-compilerLinkageEditor(Load Module)(Application Plan)Runtime SupervisorData ManagerBuffer Manager(Other)DBPL/I + SQ
17、L:EXEC SQL CREATE TABLE S ( S# CHAR(5), .)EXEC SQL SELECT SNAME INTO :SNAME FROM SIF SQLCODE 0 THEN .CALL CREATE( .)CALL SELECT( .)IF SQLCODE 0 THEN .PL/I sourceparse-tree versionof SQLrequestmodulea DB Compileroptimized machinecodes of SQL statements in system Catalog123341st time1. Pre-compiled2. Bind3. Runtime Supervisor4. Data Manager5. Buffer Manager Question 9: 儘量解釋下圖儘量解釋下圖 (10%)第8 、9 、10任選二題做答2012 Final Test-10Introduction to Database SystemWei-Pang Yang, IM
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 光纤折射率剖面微流控集成技术考核试卷
- 乐器结构动力学的多物理场耦合分析考核试卷
- 光伏发电在绿色建筑中的安全性评估考核试卷
- 化工工程标准化与国际贸易法规的关系考核试卷
- 易货贸易讲师考试试题及答案
- 光玻璃的折射率变化特性分析考核试卷
- 新兵战术基础考试试题及答案
- 广州农商行面试题及答案
- 道路泥泞面试题及答案
- 统一大市场中能源市场协同发展
- 河南省郑州市巩义市2023-2024学年六年级下学期科学6月期末试卷(含答案)
- 2024年山西特岗教师招聘笔试真题
- 【英语 北京版】2025年普通高等学校招生选择性考试含答案
- 黑龙江省哈尔滨市第九中学校2024-2025学年高一下学期6月月考化学试题(含答案)
- 2025-2030年中国低温超导材料行业市场深度调研及发展前景与投资战略研究报告
- 二手车跨境交易平台创新创业项目商业计划书
- 2023-2024学年浙江省宁波市慈溪市四年级(下)期末数学试卷
- 2025年黑龙江、吉林、辽宁、内蒙古高考生物真题试卷(解析版)
- 阿米巴模式的合同协议书
- 新闻记者采编报导人员岗位从业资格考试题含答案
- 对公客户经理培训课件
评论
0/150
提交评论