欢迎来到天天文库
浏览记录
ID:38730494
大小:71.50 KB
页数:7页
时间:2019-06-18
《期中考解答范本》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、期中考解答範本1.(a).textp.19orppt1.33這題因為有滿多同學還是畫出完整的structure了(太強了!),所以給分比較嚴格一點。理論上少了些線條,少了些箭頭我會斟酌扣分,只差一點點是不扣分啦。另外有同學劃講義1-12的圖,恩…抱歉啦,我不給分,我會再去問老師正確的圖到底是哪個。(b).textp.11Maintainametadata(dataaboutdata).什麼DDL的查詢啦,每次新增刪除資料的紀錄,table新增,刪除,修改的紀錄,metadata,…拉哩拉匝的,因為dictionar
2、y記錄的東西真的很多,同學們寫的都不夠完整。(c).textp151.Schemadefinition2.Storagestructureandaccess-methoddefinition3.Schemaandphysical-organizationmodification4.Grantingofauthorizationfordataaccess5.Routinemaintenance2.(a).5%textp.3-p.51.Dataredundancyandinconsistency:2.Difficult
3、yinaccessingdata:3.Dataisolation:4.Integrityproblems:consistencyconstraints.5.Atomicityproblems:allornothing.6.Concurrent-accessanomalies:7.Securityproblems:(b).5%1,2,3,4的答案滿fuzzy像是利用ER-Model正規劃,relationaltable,統一的資料整合,integrityrule…etc。5.利用rollback達成allornoth
4、ing6.提供堅控機制(supervision)7.view,認證都是方法。3.(a).textp.359%各三分1.asetofoneormoreattributesthatallowustoidentifyuniquelyanentityintheentityset.一個或多個attributes的組合,可以用來明確的決定特定entity用。2.Theminimalsetofasuperkey.Superkey的最小化,如果一個setofattributes是candidatekey,則此set的superse
5、t都可以用來決定唯一entity。而此set的subset就沒有辦法達到此目的了。3.Oneofcandidatekeythatischosenastheprincipalmeansofidentifyingentitieswithinanentityset.Candidatekey挑一個。(有寫到這個就給全對,如果多寫得沒有錯誤的話。)(b).textp.473%Takeloan-paymentofexample.Weakentitysetisasetthatdoesnothaveprimarykey.Discr
6、iminatorofaweakentityisasetthatallowsthedistinctionofentitiesoftobemade.以課本p.47中的loan-payment為例,期中payment為weakentityset,則payment-number這個attribute為此entityset的discriminator。有些人在解釋什麼為weakentityset,搞錯題意。(c).3%一個2分,兩個3分1.潛在的變動性2.可能有多個人同住一個屋簷下。這題也有人分case討論,如果解適合理我也
7、給分。另外,很多人似乎搞錯minimal的意思了,一個attribute不會有複雜精簡之分,是一堆的attributes的組合才會有精簡複雜之分。4.這題太easy了,不想寫解答。(a).5%要標明primarykey(1分)(b).5%要有設定primarykey的敘述(1分)SQL語法(4分)5.(a)TotalParticipation(完全參與)borrower會包含所有的Loan5.(b)PartialParticipation(部份參與)borrower僅包含部分的Customer5.(c)再另舉一個例
8、子說明TotalParticipation與PartialParticipation之真正意義。自由發揮(觀念正確即可)6.(a)selectloan-numberfromloanwherebranch-name='Perryridge'andamount>1200可參考課本p.89Πloan-number(σbranch-name='Perryridge'
此文档下载收益归作者所有